mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
fix(api-docs): 🐛 disable unsafe-inline style-src
ref https://github.com/swagger-api/swagger-ui/pull/5578
This commit is contained in:
parent
44bae636a7
commit
29b6517569
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
@ -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 / {
|
||||
|
|
|
|||
Loading…
Reference in a new issue