mirror of https://github.com/boxyhq/jackson.git
added sts, xframe and xcontenttype headers (#1950)
This commit is contained in:
parent
41b65b5761
commit
7f6bb09000
|
@ -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',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue