nginx.auth.conf: add csp header to /login
This commit is contained in:
parent
1406a95ed0
commit
f533098276
1
config/include/csp-header.conf
Normal file
1
config/include/csp-header.conf
Normal file
@ -0,0 +1 @@
|
||||
add_header Content-Security-Policy "$CSP_UPGRADE_INSECURE_REQUESTS $CSP_DEFAULT_SRC $CSP_BASE_URI $CSP_CONNECT_SRC $CSP_WORKER_SRC $CSP_FONT_SRC $CSP_SCRIPT_SRC $CSP_STYLE_SRC $CSP_OBJECT_SRC $CSP_FRAME_ANCESTORS";
|
||||
@ -40,6 +40,8 @@ server {
|
||||
|
||||
location /login {
|
||||
proxy_pass $login_proxy;
|
||||
|
||||
include /etc/nginx/include/csp-header.conf;
|
||||
}
|
||||
|
||||
location ~ ^/(logout|get-user)$ {
|
||||
@ -56,8 +58,7 @@ server {
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
|
||||
include /etc/nginx/include/auth.conf;
|
||||
|
||||
add_header Content-Security-Policy "$CSP_UPGRADE_INSECURE_REQUESTS $CSP_DEFAULT_SRC $CSP_BASE_URI $CSP_CONNECT_SRC $CSP_WORKER_SRC $CSP_FONT_SRC $CSP_SCRIPT_SRC $CSP_STYLE_SRC $CSP_OBJECT_SRC $CSP_FRAME_ANCESTORS";
|
||||
include /etc/nginx/include/csp-header.conf;
|
||||
}
|
||||
|
||||
location = /health {
|
||||
|
||||
@ -19,7 +19,7 @@ server {
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
|
||||
add_header Content-Security-Policy "$CSP_UPGRADE_INSECURE_REQUESTS $CSP_DEFAULT_SRC $CSP_BASE_URI $CSP_CONNECT_SRC $CSP_WORKER_SRC $CSP_FONT_SRC $CSP_SCRIPT_SRC $CSP_STYLE_SRC $CSP_OBJECT_SRC $CSP_FRAME_ANCESTORS";
|
||||
include /etc/nginx/include/csp-header.conf;
|
||||
}
|
||||
|
||||
location = /health {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user