Content Security Policy directive issue with MV3

Viewed 996

Currently am working on google sign-in on chrome extension with MV3, and I've an issue with CSP, every time I run the extension, I get this error.

Refused to load the script 'https://apis.google.com/js/api.js' because it violates the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

and

Refused to load the script 'https://accounts.google.com/gsi/client' because it violates the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

Can somebody give me some ideas on how to fix this? I need this to work on MV3.

0 Answers
Related