Skip to content

Commit 3d140ee

Browse files
committed
[TOOL-3874] Portal: Fix pl.js script CSP error (#6591)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on updating the Content Security Policy in the `next.config.mjs` file to enhance security by modifying the `script-src` directive. ### Detailed summary - Updated the `script-src` directive to include `thirdweb.com` and `thirdweb-dev.com` without a wildcard prefix. - Retained existing sources for `self`, `unsafe-eval`, `unsafe-inline`, `wasm-unsafe-eval`, `inline-speculation-rules`, `vercel.live`, and `js.stripe.com`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent a5f005f commit 3d140ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/portal/next.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const ContentSecurityPolicy = `
1010
style-src 'self' 'unsafe-inline';
1111
font-src 'self';
1212
frame-src * data:;
13-
script-src 'self' 'unsafe-eval' 'unsafe-inline' 'wasm-unsafe-eval' 'inline-speculation-rules' *.thirdweb.com *.thirdweb-dev.com vercel.live js.stripe.com;
13+
script-src 'self' 'unsafe-eval' 'unsafe-inline' 'wasm-unsafe-eval' 'inline-speculation-rules' thirdweb.com *.thirdweb.com thirdweb-dev.com *.thirdweb-dev.com vercel.live js.stripe.com;
1414
connect-src * data: blob:;
1515
worker-src 'self' blob:;
1616
block-all-mixed-content;

0 commit comments

Comments
 (0)