Skip to content

Commit

Permalink
fix(api-docs): 🐛 disable unsafe-inline style-src
Browse files Browse the repository at this point in the history
  • Loading branch information
collinbarrett committed Jan 24, 2021
1 parent 44bae63 commit 29b6517
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion reverse-proxy/conf.d.dev/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
2 changes: 1 addition & 1 deletion reverse-proxy/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 / {
Expand Down

0 comments on commit 29b6517

Please sign in to comment.