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
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 !
The text was updated successfully, but these errors were encountered:
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
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 !
The text was updated successfully, but these errors were encountered: