Next.js Discord

Discord Forum

Unable to use app directory in Chrome extension due to inline script execution

Unanswered
Bullmastiff posted this in #help-forum
Open in Discord
BullmastiffOP
I'd like to migrate to the app directory, but I've found that it's different to the pages directory in that on exported builds it adds a bunch of inline scripts to a page, preventing them from being executed when loaded as a Chrome extension due to CSP.

Does anyone know how to fix this?

1 Reply

Gharial
I have the same problem 🥺