mirror of
https://github.com/ruisaraiva19/favycon.git
synced 2026-09-14 11:06:21 +05:00
feat: add security headers
This commit is contained in:
parent
612fe2e58e
commit
e56b36c158
@ -4,4 +4,29 @@ module.exports = {
|
||||
deviceSizes: [375, 750, 1125],
|
||||
imageSizes: [56, 112, 185, 370, 370, 375, 540, 740, 750, 1080],
|
||||
},
|
||||
headers() {
|
||||
return [
|
||||
{
|
||||
source: '/(.*)',
|
||||
headers: [
|
||||
{
|
||||
key: 'X-XSS-Protection',
|
||||
value: '1; mode=block',
|
||||
},
|
||||
{
|
||||
key: 'X-Frame-Options',
|
||||
value: 'SAMEORIGIN',
|
||||
},
|
||||
{
|
||||
key: 'X-Content-Type-Options',
|
||||
value: 'nosniff',
|
||||
},
|
||||
{
|
||||
key: 'Content-Security-Policy',
|
||||
value: `default-src 'self'; frame-ancestors 'self'`,
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user