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

DYNAMIC_EXECUTION run on CSP setting "wasm-unsafe-eval" #18732

Open
LiuWilson00 opened this issue Feb 13, 2023 · 0 comments
Open

DYNAMIC_EXECUTION run on CSP setting "wasm-unsafe-eval" #18732

LiuWilson00 opened this issue Feb 13, 2023 · 0 comments

Comments

@LiuWilson00
Copy link

I want to run my project on environment what setting CSP block 'wasm-unsafe-eval',
and I can't set DYNAMIC_EXECUTION = 0 in my case.
so I refer to the PR to modify "emscripten” builded JS code.
but the "craftInvokerFunction" was still use eval(new Function).
and I just modify craftInvokerFunction refer to "DYNAMIC_EXECUTION == 0".
In my case it working fine.
(it can run on "wasm-unsafe-eval")

I don't think it's a good solution. so I need some suggest to deal with the CSP "wasm-unsafe-eval" block question.
even it can run on CSP block 'unsafe-eval'.
thank you so mush~

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