Skip to content Skip to sidebar Skip to footer

Google Chrome: Refused To Execute Inline Script

In light of change in chrome's content security policy, I have moved all the script in separate files and referencing them in html pages (background and popup) for my chrome extens

Solution 1:

As the previous answer suggests when you update your extension to manifest version 2 the code of the extension and the code of the referred libraries have to be CSP compatible.

Updating your jquery library should be enough. Jquery supported CSP with this bug: http://bugs.jquery.com/ticket/11249


Solution 2:

The problem was solved by upgrading the jquery.js from version 1.4 to 1.7


Post a Comment for "Google Chrome: Refused To Execute Inline Script"