remove unnecessary headers

This commit is contained in:
Jurrer 2023-10-15 20:37:20 +02:00
parent 4a6acdc792
commit c924cf20e4

View file

@ -11,16 +11,6 @@ server {
# enable to indicate to search engines to not index this site # enable to indicate to search engines to not index this site
# add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive"; # add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
# Content security headers for Laravel
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
include /config/nginx/ssl.conf; include /config/nginx/ssl.conf;
@ -55,8 +45,5 @@ server {
set $upstream_port 80; set $upstream_port 80;
set $upstream_proto http; set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port; proxy_pass $upstream_proto://$upstream_app:$upstream_port;
} }
} }