Skip to content

Commit

Permalink
fix(frontend): fix csp issues
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-h1 committed Dec 8, 2024
1 parent 44c4191 commit 7e36dc7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const contentSecurityPolicy = `
connect-src * cloudflareinsights.com;
font-src 'self' fonts.gstatic.com https://maxcdn.bootstrapcdn.com/font-awesome/latest/fonts/fontawesome-webfont.woff2;
frame-src https://dev.lhowsam.com https://lhowsam.com;
Access-Control-Allow-Origin: *;
`;

const securityHeaders = [
Expand Down Expand Up @@ -50,6 +49,10 @@ const securityHeaders = [
key: 'Permissions-Policy',
value: 'camera=(), microphone=(), geolocation=()',
},
{
key: 'Access-Control-Allow-Origin',
value: '*',
},
];

/**
Expand Down

0 comments on commit 7e36dc7

Please sign in to comment.