Skip to content

Commit

Permalink
Add HSTS header
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis committed Feb 10, 2024
1 parent 94ea9de commit 81f06ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export function middleware (request) {
// more useful headers
resp.headers.set('X-Content-Type-Options', 'nosniff')
resp.headers.set('Referrer-Policy', 'origin-when-cross-origin')
resp.headers.set('Strict-Transport-Security', 'max-age=31536000; includeSubDomains')

return resp
}
Expand Down

0 comments on commit 81f06ec

Please sign in to comment.