Prevent X-Forwarded-Proto forward during external auth subrequest

This commit is contained in:
Maxime Ginters 2018-11-09 14:57:37 -05:00
parent 14fe4898a7
commit e1720d62f4

View file

@ -841,6 +841,7 @@ stream {
proxy_pass_request_body off; proxy_pass_request_body off;
proxy_set_header Content-Length ""; proxy_set_header Content-Length "";
proxy_set_header X-Fowarded-Proto "";
{{ if $location.ExternalAuth.Method }} {{ if $location.ExternalAuth.Method }}
proxy_method {{ $location.ExternalAuth.Method }}; proxy_method {{ $location.ExternalAuth.Method }};