Refused to execute inline script because it violates the following Content Security Policy directive (Chrome Extensions Manifest 3)

Viewed 1993

I'm trying to migrate my Chrome extension from Manifest 2 to Manifest 3 but I'm getting the following error

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval'". Either the 'unsafe-inline' keyword, a hash ('sha256-ClANdr6bWuUdXWELI09IBiITbU5zbvg6V1dZp9mr55Q='), or a nonce ('nonce-...') is required to enable inline execution.

For the code

enter image description here

I have tried to add

"content_security_policy": {
    "extension_page": "script-src 'self' 'sha256-ClANdr6bWuUdXWELI09IBiITbU5zbvg6V1dZp9mr55Q='"
},

to Manifest but it didn't help

How can I solve it?

0 Answers
Related