Relative Content

Tag Archive for javascripthtmlmicrosoft-edgemicrosoft-edge-extension

How do I fix Content Security Policy directive “script-src ‘self'” error?

my first Edge Extension which I am coding for learning purposes does not work, as it generates the following error: Refused to execute inline event handler because it violates the following Content Security Policy directive: "script-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present.