Anyone have expertise with HTTP headers, specifically Content-Security-Policy?
I'm trying to set CSP on a couple of sites, to improve protection to a hosted application, and running into issues with Chrome and Firefox. Server is IIS 8.5. The app is written around aspx, and uses java scripts. I cannot tweak the app (eg set options in a <meta> tag).
Setting C-S-P default-src 'self' causes the browser to render incorrectly, loses page layout, and both browsers to complain that CSP prevents in-line scripts from running. setting default-src 'self' https://mydomain.com has same effect
Adding other directives to 'fine tune' the policy has much the same result (e.g. script-src, manifest-src
setting the 'unsafe-eval' flag causes Chrome to suggest using 'unsafe-inline'. But setting that causes Chrome to complain that scripts cannot be run as they are blocked by the CSP...!
Brief and sketchy as I am at home, just testing the water and hoping
I'm trying to set CSP on a couple of sites, to improve protection to a hosted application, and running into issues with Chrome and Firefox. Server is IIS 8.5. The app is written around aspx, and uses java scripts. I cannot tweak the app (eg set options in a <meta> tag).
Setting C-S-P default-src 'self' causes the browser to render incorrectly, loses page layout, and both browsers to complain that CSP prevents in-line scripts from running. setting default-src 'self' https://mydomain.com has same effect
Adding other directives to 'fine tune' the policy has much the same result (e.g. script-src, manifest-src
setting the 'unsafe-eval' flag causes Chrome to suggest using 'unsafe-inline'. But setting that causes Chrome to complain that scripts cannot be run as they are blocked by the CSP...!
Brief and sketchy as I am at home, just testing the water and hoping