Skip to content

Commit

Permalink
Tweak security policy to allow connections to cloudflare
Browse files Browse the repository at this point in the history
  • Loading branch information
ollieri3 committed Apr 6, 2024
1 parent 70fd12f commit 3df0600
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/middleware/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const helmetMiddleware = helmet({
directives: {
"img-src": ["'self'", "data:", "img.shields.io"], // Allow img.shields.io for footer badges
"script-src": ["'self'", "*.cloudflareinsights.com"], // Allow Cloudflare analytics
"connect-src": ["'self'", "*.cloudflareinsights.com"],
},
},
});
Expand Down

0 comments on commit 3df0600

Please sign in to comment.