Skip to content

Commit

Permalink
fix(docs): allow fathom in CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
branko-stripe committed Oct 30, 2024
1 parent 8d9a360 commit 8aec1a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/docs/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function getContentSecurityPolicyHeaderValue(nonce: string, reportUri: string):
"object-src": [`'none'`],
"report-uri": [reportUri], // for old browsers like Firefox
"report-to": ["csp"], // for modern browsers like Chrome
"script-src": [`'self'`, `'unsafe-inline'`],
"script-src": [`'self'`, `'unsafe-inline'`, "cdn.usefathom.com", "cdn.prod.website-files.com"],
"style-src": [`'self'`, `'unsafe-inline'`, "*.lemonsqueezy.com", "fonts.googleapis.com"],
};

Expand Down

0 comments on commit 8aec1a1

Please sign in to comment.