Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refused to execute...Script... Security Policy directive: #23

Open
rolambert opened this issue Feb 26, 2017 · 0 comments
Open

Refused to execute...Script... Security Policy directive: #23

rolambert opened this issue Feb 26, 2017 · 0 comments

Comments

@rolambert
Copy link

Got the following error
When I used the encryption div.
Version 56.0.2924.87 (64-bit)

Refused to execute inline script because it violates the following Content Security Policy directive: >"script-src 'self' https://api.viglink.com chrome-extension-resource: https://ssl.google-analytics.com". >Either the 'unsafe-inline' keyword, a hash ('sha256->vyn9lGUmYgsgRCss7gt59y7kKqY19LyizJ5iIAcQyRo='), or a nonce ('nonce-...') is required to enable inline >execution.
(anonymous) @ jquery-1.4.2.min.js:35

I found this example for a possible fix: (http://tinyurl.com/jh8damu )

Replace (in the HTML):

onload = "loadHandler()"

with (in the script):

window.addEventListener('load', loadHandler);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant