mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-19 21:03:46 -07:00
Hide proxy port to prevent CSRF errors
This commit is contained in:
parent
99aa593b2d
commit
595c9a095f
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue