added sts, xframe and xcontenttype headers (#1950)

This commit is contained in:
Deepak Prabhakara 2023-11-18 21:30:29 +00:00 committed by GitHub
parent 41b65b5761
commit 7f6bb09000
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

View File

@ -98,4 +98,25 @@ module.exports = {
},
],
},
async headers() {
return [
{
source: '/(.*?)',
headers: [
{
key: 'Strict-Transport-Security',
value: 'max-age=31536000; includeSubDomains;',
},
{
key: 'X-Frame-Options',
value: 'SAMEORIGIN',
},
{
key: 'X-Content-Type-Options',
value: 'nosniff',
},
],
},
];
},
};