I'm building a Chrome extension using Next.js 15 with TypeScript, but encountering a Content Security Policy (CSP) error:
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self'".--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/CAOsQqB%3D0LEcDFFALBrDYS8pkC1hG5VB0Snv8CL9HMbE9oe_JfA%40mail.gmail.com.
Hi Oliver,
I tried it, and it worked somehow. I created a js folder inside
next/static/js/hydrate.js.
But now, I’m getting this error and warning.
Good point! In that case, which React framework would be the best fit for a Chrome extension?