So I am doing a chrome extension with react and when I compile it down to static js it will create inline script and that I am fully aware off therefore I have added
"content_security_policy": "script-src 'self' 'sha256-5As4+3YpY62+l38PsxCEkjB1R4YtyktBtRScTJ3fyLUQ='; object-src 'self'"
but chrome still throws this error
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'sha256-5As4+3YpY62+l38PsxCEkjB1R4YtyktBtRScTJ3fyLUQ='". Either the 'unsafe-inline' keyword, a hash ('sha256-5As4+3YpY62+l38PsxCEkjB1R4YtyktBtRScTJ3fyLU='), or a nonce ('nonce-...') is required to enable inline execution.
Am I missing something?
Here's the github repo if you wanna check the code https://github.com/Hugo-Persson/NewTabExtension