Skip to content

Wasm CPS "unsafe eval" error #699

Open
@Ahlecss

Description

@Ahlecss

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions