Skip to content

Commit

Permalink
fix: fathom
Browse files Browse the repository at this point in the history
  • Loading branch information
mcansh authored Oct 11, 2024
1 parent 793f45c commit 2fa681c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ function applySecurityHeaders(request: Request, responseHeaders: Headers) {

let url = new URL(request.url);

let fathomScriptDomain = "https://cdn.usefathom.com/script.js";

let nonce = createNonce();
let securityHeaders = createSecureHeaders({
"Content-Security-Policy": {
Expand All @@ -118,11 +116,11 @@ function applySecurityHeaders(request: Request, responseHeaders: Headers) {
"img-src": [
"'self'",
`https://res.cloudinary.com/${env.CLOUDINARY_CLOUD_NAME}/image/upload/`,
fathomScriptDomain,
"https://cdn.usefathom.com",
],
"script-src": [
"'self'",
new URL("script.js", fathomScriptDomain).toString(),
"https://cdn.usefathom.com/script.js"
new URL(

Check failure on line 124 in app/entry.server.tsx

View workflow job for this annotation

GitHub Actions / ♻️ Purge Cloudflare cache

',' expected.
"cdn-cgi/scripts/*/cloudflare-static/email-decode.min.js",
url.origin,
Expand Down

0 comments on commit 2fa681c

Please sign in to comment.