mirror of
https://github.com/bitwarden/server.git
synced 2025-02-22 02:51:33 +01:00
enabled X-Frame-Options header
This commit is contained in:
parent
d4c35a98b7
commit
566471cae8
@ -47,7 +47,7 @@ server {
|
||||
|
||||
# Security headers
|
||||
add_header Referrer-Policy same-origin;
|
||||
#add_header X-Frame-Options SAMEORIGIN;
|
||||
add_header X-Frame-Options SAMEORIGIN;
|
||||
{{#if Ssl}}
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
# This will enforce HTTP browsing into HTTPS and avoid ssl stripping attack. 6 months age
|
||||
@ -67,6 +67,16 @@ server {
|
||||
add_header Content-Type $fido_content_type;
|
||||
}
|
||||
|
||||
location = /duo-connector.html {
|
||||
proxy_pass http://web:5000/duo-connector.html;
|
||||
proxy_hide_header X-Frame-Options;
|
||||
}
|
||||
|
||||
location = /u2f-connector.html {
|
||||
proxy_pass http://web:5000/u2f-connector.html;
|
||||
proxy_hide_header X-Frame-Options;
|
||||
}
|
||||
|
||||
location /attachments/ {
|
||||
proxy_pass http://attachments:5000/;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user