Skip to content

Commit

Permalink
re-move extra headers, no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
elrido committed Nov 5, 2023
1 parent 0468ce4 commit 5b481de
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,6 @@ server {

# HSTS (15768000 seconds = 6 months)
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload";
add_header Cross-Origin-Embedder-Policy require-corp;
add_header Cross-Origin-Resource-Policy same-origin;
add_header Referrer-Policy no-referrer;
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options deny;
add_header X-XSS-Protection "1; mode=block";

# proxy to demo site container
location / {
Expand All @@ -186,12 +180,6 @@ server {
proxy_pass http://demo;
proxy_cache privatebin;
proxy_http_version 1.1;
proxy_hide_header Cross-Origin-Embedder-Policy;
proxy_hide_header Cross-Origin-Resource-Policy;
proxy_hide_header Referrer-Policy;
proxy_hide_header X-Content-Type-Options;
proxy_hide_header X-Frame-Options;
proxy_hide_header X-XSS-Protection;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand Down

0 comments on commit 5b481de

Please sign in to comment.