summaryrefslogtreecommitdiffstats
path: root/installer/roles/local_docker
diff options
context:
space:
mode:
authorRyan Petrello <rpetrell@redhat.com>2020-12-04 18:39:19 +0100
committerJake McDermott <yo@jakemcdermott.me>2020-12-08 19:25:46 +0100
commit3d5f28f79097c3c4b58a45fdb7de40cff432acb9 (patch)
tree99d97fca2b01c0242760583f91ea0a463ce99c15 /installer/roles/local_docker
parentMerge pull request #8766 from Spredzy/bump_to_nodejs14 (diff)
downloadawx-3d5f28f79097c3c4b58a45fdb7de40cff432acb9.tar.xz
awx-3d5f28f79097c3c4b58a45fdb7de40cff432acb9.zip
Introduce a strict Content-Security-Policy
Diffstat (limited to 'installer/roles/local_docker')
-rw-r--r--installer/roles/local_docker/templates/nginx.conf.j22
1 files changed, 0 insertions, 2 deletions
diff --git a/installer/roles/local_docker/templates/nginx.conf.j2 b/installer/roles/local_docker/templates/nginx.conf.j2
index 0c93510bc9..327b59a2fe 100644
--- a/installer/roles/local_docker/templates/nginx.conf.j2
+++ b/installer/roles/local_docker/templates/nginx.conf.j2
@@ -67,8 +67,6 @@ http {
# HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
add_header Strict-Transport-Security max-age=15768000;
- add_header Content-Security-Policy "default-src 'self'; connect-src 'self' ws: wss:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' *.pendo.io; img-src 'self' *.pendo.io data:; report-uri /csp-violation/";
- add_header X-Content-Security-Policy "default-src 'self'; connect-src 'self' ws: wss:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' *.pendo.io; img-src 'self' *.pendo.io data:; report-uri /csp-violation/";
# Protect against click-jacking https://www.owasp.org/index.php/Testing_for_Clickjacking_(OTG-CLIENT-009)
add_header X-Frame-Options "DENY";