Top "Content-security-policy" questions

Content Security Policy (CSP) aims to mitigate the risk of cross-site scripting attacks by giving developers fine-grained control over the resources a page is allowed to load, as well as the script it's allowed to execute.

Refused to load the script because it violates the following Content Security Policy directive

When I tried to deploy my app onto devices with Android system above 5.0.0 (Lollipop), I kept getting these kind of …

javascript android cordova content-security-policy
How does Content Security Policy (CSP) work?

I'm getting a bunch of errors in the developer console: Refused to evaluate a string Refused to execute inline script …

javascript html security http-headers content-security-policy
Content Security Policy: The page's settings blocked the loading of a resource

I am using CAPTCHA on page load, but it is blocking because of some security reason. I am facing this …

javascript jquery content-security-policy
Refused to apply inline style because it violates the following Content Security Policy directive

So, in about 1 hour my extensions failed hard. I was doing my extension and it was doing what I pretended. …

javascript google-chrome-extension content-security-policy
Content Security Policy "data" not working for base64 Images in Chrome 28

In this simple example, I'm trying to set a CSP header with the meta http-equiv header. I included a base64 …

content-security-policy
What’s the purpose of the HTML "nonce" attribute for script and style elements?

W3C says there is a new attribute in HTML5.1 called nonce for style and script that can be used …

html attributes content-security-policy nonce
Chrome version 18+: How to allow inline scripting with a Content Security Policy?

Chrome 18 Dev/Canary has just been released, and content_security_policy will be needed in the manifest for certain extensions. …

google-chrome google-chrome-extension content-security-policy
How to override content security policy while including script in browser JS console?

I was trying to include JQuery on an existing website using console this way: var script = document.createElement('script'); script.…

javascript browser-extension content-security-policy browser-security
Cordova - refuse to execute inline event handler because it violates the following content Security policy

I'm training for Cordova application development and I turn around a problem with Content Security Policy. My application is running …

javascript android cordova content-security-policy
Content Security Policy: "img-src 'self' data:"

I have an app, in which the user would be able to copy an image URL, paste it unto an …

html canvas ionic-framework content-security-policy