From 29b6517569a205b959b93e8633e3ceda1919af75 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sun, 24 Jan 2021 13:10:58 -0600 Subject: [PATCH] =?UTF-8?q?fix(api-docs):=20=F0=9F=90=9B=20disable=20unsaf?= =?UTF-8?q?e-inline=20style-src?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref https://github.com/swagger-api/swagger-ui/pull/5578 --- reverse-proxy/conf.d.dev/default.conf | 2 +- reverse-proxy/conf.d/default.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reverse-proxy/conf.d.dev/default.conf b/reverse-proxy/conf.d.dev/default.conf index 235e3f97a2..f629edef22 100644 --- a/reverse-proxy/conf.d.dev/default.conf +++ b/reverse-proxy/conf.d.dev/default.conf @@ -20,6 +20,6 @@ server { rewrite ^/api/(.*)$ /$1 break; proxy_pass http://api-docs:8080; include location-includes/*; - add_header Content-Security-Policy "default-src 'none'; base-uri 'self'; frame-ancestors 'self'; form-action 'none'; connect-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' validator.swagger.io data:;" always; + add_header Content-Security-Policy "default-src 'none'; base-uri 'self'; frame-ancestors 'self'; form-action 'none'; connect-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self'; img-src 'self' validator.swagger.io data:;" always; } } \ No newline at end of file diff --git a/reverse-proxy/conf.d/default.conf b/reverse-proxy/conf.d/default.conf index b9fbc0682e..596f75a319 100644 --- a/reverse-proxy/conf.d/default.conf +++ b/reverse-proxy/conf.d/default.conf @@ -23,7 +23,7 @@ server { rewrite ^/api/(.*)$ /$1 break; proxy_pass http://api-docs:8080; include location-includes/*; - add_header Content-Security-Policy "default-src 'none'; base-uri 'self'; frame-ancestors 'self'; form-action 'none'; connect-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' validator.swagger.io data:;" always; + add_header Content-Security-Policy "default-src 'none'; base-uri 'self'; frame-ancestors 'self'; form-action 'none'; connect-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self'; img-src 'self' validator.swagger.io data:;" always; } location / {