Connorhd / TabCloud

Store browser window sessions in the cloud
http://chrometabcloud.appspot.com/
MIT License
205 stars 70 forks source link

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

Open rolambert opened 7 years ago

rolambert commented 7 years ago

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);