Preload HSTS (#2205)
This commit is contained in:
parent
fa177317e3
commit
f3df1092d8
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user