Merge pull request #15 from kyleconroy/kjc-remove-csp-policy
Don't add CSP header when disallowing framing.
This commit is contained in:
@@ -342,7 +342,6 @@ response.setGzip = function(gzip) {
|
||||
|
||||
response.disallowFraming = function() {
|
||||
response.setHeader('X-Frame-Options', 'SAMEORIGIN');
|
||||
response.addHeader('Content-Security-Policy', "frame-ancestors 'self'");
|
||||
}
|
||||
|
||||
response.allowFraming = function() {
|
||||
|
||||
Reference in New Issue
Block a user