mirror of
https://github.com/bitwarden/server.git
synced 2025-04-17 11:08:16 -05:00
move all security headers to web vault location
This commit is contained in:
parent
0070d23dab
commit
05b1c1cf9b
@ -141,14 +141,13 @@ server {{
|
|||||||
}
|
}
|
||||||
|
|
||||||
sw.WriteLine($@"
|
sw.WriteLine($@"
|
||||||
# Security headers
|
|
||||||
#add_header X-Frame-Options SAMEORIGIN;
|
|
||||||
add_header X-Content-Type-Options nosniff;
|
|
||||||
add_header X-XSS-Protection ""1; mode=block"";
|
|
||||||
add_header Referrer-Policy same-origin;
|
|
||||||
|
|
||||||
location / {{
|
location / {{
|
||||||
proxy_pass http://web:5000/;
|
proxy_pass http://web:5000/;
|
||||||
|
# Security headers
|
||||||
|
#add_header X-Frame-Options SAMEORIGIN;
|
||||||
|
add_header X-Content-Type-Options nosniff;
|
||||||
|
add_header X-XSS-Protection ""1; mode=block"";
|
||||||
|
add_header Referrer-Policy same-origin;
|
||||||
add_header Content-Security-Policy ""{ContentSecurityPolicy}"";
|
add_header Content-Security-Policy ""{ContentSecurityPolicy}"";
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user