mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2026-07-09 01:52:34 +02:00
Hide proxy port to prevent CSRF errors
This commit is contained in:
@@ -42,6 +42,9 @@ server {
|
||||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
# Hide proxy port to prevent CSRF errors
|
||||
proxy_hide_header X-Forwarded-Port;
|
||||
|
||||
# Uncomment to allow loading in an iframe (i.e. Organizr)
|
||||
#proxy_hide_header X-Frame-Options;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user