I am trying to use the ocrad.js library to perform OCR, and it is throwing an error when I try to use it. I am able to load the script in properly, but I keep getting this error: “Uncaught (in promise) EvalError: Refused to evaluate a string as JavaScript because ‘unsafe-eval’ is not an allowed source of script in the following Content Security Policy directive: “script-src ‘self’ ‘wasm-unsafe-eval’ ‘inline-speculation-rules’ http://localhost:* http://127.0.0.1:*”.”
I believe this is because ocrad.js has eval() functions in it and MV3 doesn’t allow this. I don’t know how to get around this.