I want to use oninput in an input field within the default_popup of a chrome extension but I get the below CSP related errors.
Does Manifest v3 not support oninput? Do I need to put in some exception or forced to use a different approach?
Trying to implement this working jsfiddle https://jsfiddle.net/markusd1984/3o8bxc27/1/ .
<input type="text" id="durationtimestamp" value="00:00" oninput="durationtimestamp(this.value)" required="required" style="width:35px;">
js
function durationtimestamp(value) {
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.
popup.html:67 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.