Skip to content

Commit

Permalink
fix: headers (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
CristhianF7 authored Feb 17, 2025
1 parent eea70ed commit 7c6f733
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,22 @@ const nextConfig = {
eslint: {
// eslint will be executed before we run build
ignoreDuringBuilds: true,
}
},
poweredByHeader: false,
headers: async () => {
return [
{
source: '/:path*',
headers: [
{ key: 'Cache-Control', value: 'no-cache, no-store' },
{ key: 'Content-Security-Policy', value: 'frame-ancestors \'none\'' },
{ key: 'X-Content-Type-Options', value: 'nosniff' },
{ key: 'X-Frame-Options', value: 'DENY' },
{ key: 'Referrer-Policy', value: 'no-referrer' },
],
},
];
},
};

module.exports = nextConfig;

0 comments on commit 7c6f733

Please sign in to comment.