Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wasm CPS "unsafe eval" error #699

Open
Ahlecss opened this issue Sep 13, 2024 · 0 comments
Open

Wasm CPS "unsafe eval" error #699

Ahlecss opened this issue Sep 13, 2024 · 0 comments

Comments

@Ahlecss
Copy link

Ahlecss commented Sep 13, 2024

Hi there !

Hope your well,

I'm using R3Rapier inside an Hydrogen/Remix Shopify environment,

Whenever I import Rapier, I got this error :

WebAssembly.instantiate(): Refused to compile or instantiate WebAssembly module because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "default-src self 'self'

I've managed to remove the error by putting a

scriptSrc: ["'self'", "'unsafe-eval'"],

inside a CSP defining function, but I've read here and there that it's not really safe to right "unsafe-eval", what are the other possibilities ?

Have a nice day !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant