googlearchive / polymer-tutorial

Deprecated Polymer 0.5 tutorial app
211 stars 125 forks source link

Refused to execute inline script #18

Closed prateekjassal closed 10 years ago

prateekjassal commented 10 years ago

Error message: Refused to execute inline script because it violates the following Content Security Policy directive: "default-src 'self' chrome-extension-resource:". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution. Note also that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.

Browser: Chrome 36.0.1985.125 m

Just loaded the sample chrome polymer app without any changes but was getting this error on the console.

robdodson commented 10 years ago

It looks like this is an issue with grunt-vulcanize. We're updating it and I'll close this ticket when the new version of the tutorial is out

On Tue, Jul 29, 2014 at 2:17 AM, Prateek Jassal notifications@github.com wrote:

Error message: Refused to execute inline script because it violates the following Content Security Policy directive: "default-src 'self' chrome-extension-resource:". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution. Note also that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.

Browser: Chrome 36.0.1985.125 m

Just loaded the sample chrome polymer app without any changes but was getting this error on the console.

— Reply to this email directly or view it on GitHub https://github.com/Polymer/polymer-tutorial/issues/18.