Skip to content

Commit

Permalink
hotfix: disable csp headers
Browse files Browse the repository at this point in the history
  • Loading branch information
nounspaceryan committed Jul 2, 2024
1 parent 5b3db94 commit 9bc1863
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,23 @@ const nextConfig = {
},
];
},
async headers() {
return [
{
source: '/(.*)',
headers: [
{
key: 'Content-Security-Policy',
value: cspHeader.replace(/\n/g, ''),
},
{
key: 'X-Frame-Options',
value: 'DENY',
},
],
},
];
},
// async headers() {
// return [
// {
// source: '/(.*)',
// headers: [
// {
// key: 'Content-Security-Policy',
// value: cspHeader.replace(/\n/g, ''),
// },
// {
// key: 'X-Frame-Options',
// value: 'DENY',
// },
// ],
// },
// ];
// },
};

export default withBundleAnalyzer(nextConfig);

0 comments on commit 9bc1863

Please sign in to comment.