When I using wasm version of zxing-cpp, we meet CSP 'unsafe-eval' issue, how can we fix it? #977
Replies: 6 comments 15 replies
-
Beta Was this translation helpful? Give feedback.
-
Never seen that before. @Sec-ant: Do you have any idea? |
Beta Was this translation helpful? Give feedback.
-
@AlexXiong-dev You can use |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi @Sec-ant, |
Beta Was this translation helpful? Give feedback.
-
Finally, we found out that only need to add "-s DYNAMIC_EXECUTION=0" to build the wasm binary, then do some little customization locally, we can avoid this CSP issue too. (Still need Customer to use 'wasm-unsafe-eval' ) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We meet CSP 'unsafe-eval' issue when using zxing_reader.wasm, if we don't want to set CSP to allow unsafe-eval, how can we fix this?
Beta Was this translation helpful? Give feedback.
All reactions