Skip to content

Commit f8436b4

Browse files
committed
fix: add cdn.jsdelivr.net to CSP for Monaco editor
1 parent 988fee3 commit f8436b4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

nginx.conf.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ http {
3939
add_header X-Frame-Options "SAMEORIGIN" always;
4040
add_header X-Content-Type-Options "nosniff" always;
4141
add_header X-XSS-Protection "1; mode=block" always;
42-
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://clerk.typelets.com https://*.clerk.accounts.dev https://static.cloudflareinsights.com; script-src-elem 'self' 'unsafe-inline' https://clerk.typelets.com https://*.clerk.accounts.dev https://static.cloudflareinsights.com; style-src 'self' 'unsafe-inline' https://clerk.typelets.com https://fonts.googleapis.com; style-src-elem 'self' 'unsafe-inline' https://fonts.googleapis.com https://clerk.typelets.com; img-src 'self' data: https: blob:; font-src 'self' data: https://clerk.typelets.com https://fonts.gstatic.com; connect-src 'self' https://clerk.typelets.com https://*.clerk.accounts.dev https://cloudflareinsights.com wss://ws-api.typelets.com https://api.typelets.com; frame-src 'self' https://clerk.typelets.com https://*.clerk.accounts.dev https://challenges.cloudflare.com; worker-src 'self' blob:;" always;
42+
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://clerk.typelets.com https://*.clerk.accounts.dev https://static.cloudflareinsights.com https://cdn.jsdelivr.net; script-src-elem 'self' 'unsafe-inline' https://clerk.typelets.com https://*.clerk.accounts.dev https://static.cloudflareinsights.com https://cdn.jsdelivr.net; style-src 'self' 'unsafe-inline' https://clerk.typelets.com https://fonts.googleapis.com; style-src-elem 'self' 'unsafe-inline' https://fonts.googleapis.com https://clerk.typelets.com; img-src 'self' data: https: blob:; font-src 'self' data: https://clerk.typelets.com https://fonts.gstatic.com; connect-src 'self' https://clerk.typelets.com https://*.clerk.accounts.dev https://cloudflareinsights.com wss://ws-api.typelets.com https://api.typelets.com; frame-src 'self' https://clerk.typelets.com https://*.clerk.accounts.dev https://challenges.cloudflare.com; worker-src 'self' blob:;" always;
4343

4444
# === Proxy API requests to backend service ===
4545
location /api/ {

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@
1515
"./src/*"
1616
]
1717
}
18-
},
19-
"extends": "expo/tsconfig.base"
18+
}
2019
}

0 commit comments

Comments
 (0)