What are you trying to do?
- Publish urgent changes and continue editing in Plasmic Studio.
- Normal Studio usage suddenly started failing due to CSP blocking scripts loaded from
a.plasmic.app
. - This isn’t related to our project code; it appears to be a Studio CSP regression.
Reproduction steps
- Open Plasmic Studio.
- Observe the browser console. Multiple scripts from
https://a.plasmic.app
are blocked by CSP. - Tried:
- Hard refresh
- Incognito/private browsing
- Different browsers (Chrome, Safari)
- Different devices/network
- Issue persists; Studio does not load ancillary scripts and shows “sentry dep missing” errors.
Console errors (examples)
Refused to load the script 'https://a.plasmic.app/static/dead-clicks-autocapture.js?v=1.258.6' because it violates the following Content Security Policy directive:
"script-src 'self' 'unsafe-inline' 'unsafe-eval' https://studio.plasmic.app https://js.stripe.com https://cdn.segment.com https://cdn.amplitude.com https://www.google-analytics.com https://www.googletagmanager.com https://*.posthog.com".
Refused to load the script 'https://a.plasmic.app/array/phc_.../config.js' because it violates the following Content Security Policy directive: "script-src ...".
Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
C: Value must not be undefined or null - sentry dep missing
Expected behavior
- Studio should load without CSP violations and allow me to publish/edit as usual.
Actual behavior
- Scripts hosted on
a.plasmic.app
are blocked by Studio’s CSP (served fromstudio.plasmic.app
), causing parts of Studio to fail. - This appears to be a configuration/deploy regression: Studio’s CSP doesn’t include
a.plasmic.app
inscript-src
(and possiblyscript-src-elem
).
Impact
- Blocking urgent publish/edit work. Time-sensitive.
Environment
- Browsers: Chrome (latest), Safari (latest)
- Mode: Normal, Incognito/Private
- OS: macOS
- Time window: ongoing as of now
Relevant links
Request
- Please update Studio’s CSP to allow
https://a.plasmic.app
for scripts (and considerscript-src-elem
if applicable). - If there’s a temporary workaround we can use safely (e.g., different Studio URL or feature flag), please share.
- An ETA for the fix would be greatly appreciated, as this is blocking an urgent publish.
Thank you for the help!