async headers() {
return await Promise.resolve([
/*
* Enhanced Security Headers
* Adds Content Security Policy for better security
*/
{
source: '/(.*)',
headers: [
{
key: 'X-Frame-Options',
value: 'DENY',
},
{
key: 'X-Content-Type-Options',
value: 'nosniff',
},
{
key: 'Referrer-Policy',
value: 'origin-when-cross-origin',
},
{
key: 'X-XSS-Protection',
value: '1; mode=block',
},
],
},
]);
},
async headers() {
return await Promise.resolve([
/*
* Enhanced Security Headers
* Adds Content Security Policy for better security
*/
{
source: '/(.*)',
headers: [
{
key: 'X-Frame-Options',
value: 'DENY',
},
{
key: 'X-Content-Type-Options',
value: 'nosniff',
},
{
key: 'Referrer-Policy',
value: 'origin-when-cross-origin',
},
{
key: 'X-XSS-Protection',
value: '1; mode=block',
},
],
},
]);
},