You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SecurityError: Failed to register a ServiceWorker: The provided scriptURL ('https://sentry.yourdomain.tld/service-worker.js`) violates the Security Content Policy.
Expected Result
There would be no error and worker-src is set to self.
changed the title [-]Sentry default Content Security Policy does not set worker-src[/-][+]Sentry default Content Security Policy sets `worker-src 'none'` instead of `worker-src 'self'`[/+]on Oct 18, 2026
#125307
This pull request should have already updated the default from 'none' to 'self'. Perhaps the pull request has not yet been pushed to prod, or the current environment is outdated.
Activity
getsantry commentedon Oct 18, 2026
Assigning to @getsentry/support for routing ⏲️
linear-code commentedon Oct 18, 2026
ENG-8836
[-]Sentry default Content Security Policy does not set worker-src[/-][+]Sentry default Content Security Policy sets `worker-src 'none'` instead of `worker-src 'self'`[/+]GemTails commentedon Oct 18, 2026
#125307
This pull request should have already updated the default from 'none' to 'self'. Perhaps the pull request has not yet been pushed to prod, or the current environment is outdated.
TommyTran732 commentedon Oct 18, 2026
I see, perhaps it's because I am on 26.8.0 instead of 26.9.0. 26.9.0 threw so many errors with cron and whatnot that I had to roll back to 26.8.0 😢
oioki commentedon Oct 19, 2026
Indeed, this was resolved in #125307 and available in 26.10.0.
As a workaround, you can set the same in your
sentry.conf.py: