diff --git a/middleware.js b/middleware.js index 7d89b777e..75d21ea66 100644 --- a/middleware.js +++ b/middleware.js @@ -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 }