My Computer keeps telling me this: 'Refused to execute inline event handler because it violates the following Content Security Policy

Viewed 29

My Computer keeps telling me this:

'Refused to execute inline event handler because it violates the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval'". 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.'

for this code: <button id="add" onclick="render()">Add</button>

0 Answers
Related