Preload HSTS (#2205)

This commit is contained in:
ekzyis 2025-06-03 20:47:25 -05:00 committed by GitHub
parent fa177317e3
commit f3df1092d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -128,7 +128,7 @@ export function middleware (request) {
// more useful headers // more useful headers
resp.headers.set('X-Content-Type-Options', 'nosniff') resp.headers.set('X-Content-Type-Options', 'nosniff')
resp.headers.set('Referrer-Policy', 'origin-when-cross-origin') resp.headers.set('Referrer-Policy', 'origin-when-cross-origin')
resp.headers.set('Strict-Transport-Security', 'max-age=31536000; includeSubDomains') resp.headers.set('Strict-Transport-Security', 'max-age=31536000; includeSubDomains; preload')
return resp return resp
} }