-
Hi everyone, I followed https://docs.sentry.io/platforms/javascript/guides/vue/session-replay/configuration/#using-a-custom-compression-worker to set up the worker script in my website. Here is the config package.json
main.js
I am able to load the worker.min.js However, it still has the CSP problem in console. Please give me some idea if anyone knows it. Thanks! Keith |
Beta Was this translation helpful? Give feedback.
Answered by
lforst
Jan 13, 2025
Replies: 1 comment 14 replies
-
Can you share the CSP error? |
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you may be confused. The inline compression worker (ie when not using a custom one) may cause CSP errors. This is what these docs explain how to fix. If the
worker-src 'self' blob:
is too lax, you may use a custom compression worker. For the custom compression worker, you may add more specific CSP rules. You still need to allow the custom worker script with a CSP rule. How you do that strongly depends on your setup.