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 React-three/Rapier (module for physics in 3D) 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 ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there !
Hope your well,
I'm using React-three/Rapier (module for physics in 3D) 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 !
Beta Was this translation helpful? Give feedback.
All reactions