I've had this issue for awhile but it's only now becoming a real problem.
I implemented Content Security Policy a couple of years ago. I use PHP to set the headers. Here's my header below.
Content-Security-Policy: default-src 'self' www.googleadservices.com ssl.google-analytics.com www.google-analytics.com googleads.g.doubleclick.net
This works perfectly. However, if I change it in any way, the header sent is still the same. Even if I delete the code the server sends it anyway.
I thought the browser might cache this but fresh browsers do the same thing as well as online header checkers. I thought the web server might cache this but modifications to other header directives work fine.
I'm using IIS7.5 with PHP 5.6.31 NTS on Windows Web Server 2008.
This is a weird problem and neither a Google nor an SO search has turned up anything.
Old code:
header("Content-Security-Policy: default-src 'self' www.googleadservices.com
ssl.google-analytics.com www.google-analytics.com googleads.g.doubleclick.net
");
New Code:
header("Content-Security-Policy: default-src 'self' www.googleadservices.com
ssl.google-analytics.com www.google-analytics.com googleads.g.doubleclick.net sealserver.trustwave.com;
style-src 'self' fonts.googleapis.com; object-src 'none';
");
Resulting header no matter what.
Content-Security-Policy: default-src 'self' www.googleadservices.com
ssl.google-analytics.com www.google-analytics.com
googleads.g.doubleclick.net
Any hints would be appreciated.