Skip to content

Commit

Permalink
😒fixing CSP again
Browse files Browse the repository at this point in the history
  • Loading branch information
altan-me committed Dec 12, 2023
1 parent 981c73c commit 4807e2c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ app.use((req, res, next) => {
res.setHeader(
"Content-Security-Policy",
"default-src 'self';" +
"script-src 'self' https://static.cloudflareinsights.com;" + // Add other script sources here
"style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;" + // Add Google Fonts
"img-src 'self';"
"script-src 'self' 'unsafe-inline' https://static.cloudflareinsights.com;" +
"style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;" +
"img-src 'self';" +
"font-src 'self' https://fonts.gstatic.com;" // Add font-src directive
// Add other directives as needed
);
// X-Frame-Options
Expand Down

0 comments on commit 4807e2c

Please sign in to comment.