Merge pull request #3405 from Shopify/external-auth-proto

Prevent X-Forwarded-Proto forward during external auth subrequest
This commit is contained in:
k8s-ci-robot 2018-11-12 12:36:20 -08:00 committed by GitHub
commit 023261142c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 }};