Don't add a CSP when disallowing framing.

The CSP header is already added to every request, so we don't need to
add a second policy.
This commit is contained in:
Kyle Conroy
2015-08-26 11:18:40 -07:00
parent 54a312f973
commit 06ce45692d

View File

@@ -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() {