Return to manifest version 2
All your js has to be in an external file, no inline script.
I haven't changed anything in my extension and it's stopped working with a couple of "Refused to execute inline script because of Content-Security-Policy." in the background page. I guess this started happening with the Chrome 20, update. I've tried adding "manifest_version": 1 and "content_security_policy": "default-src 'self' 'unsafe-inline'" to the manifest but no help. Not sure what to try next?
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-extensions/-/A96xCJWysK8J.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
OK, I HAVE updated MY complex extension such that it seems to work with manifest v2 CSP, but my background page still logs three "Refused to evaluate script because of Content-Security-Policy." messages on load. Bearing in mind that my small content scripts appear to work, there are no evals in any of my code, and no inline scripts or external resource fetches in the HTML pages, how do I pinpoint (in a large extension remember) what is causing this problem.
On Sunday, July 8, 2012 6:02:51 PM UTC+2, patrick clancey wrote:I haven't changed anything in my extension and it's stopped working with a couple of "Refused to execute inline script because of Content-Security-Policy." in the background page. I guess this started happening with the Chrome 20, update. I've tried adding "manifest_version": 1 and "content_security_policy": "default-src 'self' 'unsafe-inline'" to the manifest but no help. Not sure what to try next?
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-extensions/-/SB7NUcn3WgQJ.