Skip to content

Commit

Permalink
Merge pull request #214 from w3bdesign/development
Browse files Browse the repository at this point in the history
'unsafe-inline'
  • Loading branch information
w3bdesign authored Jul 22, 2024
2 parents a84d33a + 202a990 commit 69e3643
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ const nextConfig = {
},
],
},
async headers() {
async headers() {

/*
const cspHeader = `
default-src 'self';
script-src 'self' 'unsafe-eval' 'unsafe-inline';
Expand All @@ -23,24 +22,6 @@ const nextConfig = {
frame-ancestors 'none';
upgrade-insecure-requests;
`.replace(/\s{2,}/g, ' ').trim();
*/


const cspHeader = `
default-src 'self';
script-src 'report-sample' 'self';
style-src 'report-sample' 'self';
object-src 'none';
base-uri 'self';
connect-src 'self';
font-src 'self';
frame-src 'self';
img-src 'self';
manifest-src 'self';
media-src 'self';
report-uri https://669ece24abce8c3d2411fdd1.endpoint.csper.io/?v=0;
worker-src 'none';
`.replace(/\s{2,}/g, ' ').trim();

return [
{
Expand Down

0 comments on commit 69e3643

Please sign in to comment.