|
|
|
|
@ -38,7 +38,7 @@ to inform the server that the original port was `443`.
@@ -38,7 +38,7 @@ to inform the server that the original port was `443`.
|
|
|
|
|
==== X-Forwarded-Proto |
|
|
|
|
|
|
|
|
|
While not standard, https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto[`X-Forwarded-Proto: (https|http)`] |
|
|
|
|
is a de-facto standard header that is used to communicate the original protocol (for example, https / https) |
|
|
|
|
is a de-facto standard header that is used to communicate the original protocol (for example, https / http) |
|
|
|
|
to a downstream server. For example, if a request of `https://example.com/resource` is sent to |
|
|
|
|
a proxy which forwards the request to `http://localhost:8080/resource`, then a header of |
|
|
|
|
`X-Forwarded-Proto: https` can be sent to inform the server that the original protocol was `https`. |
|
|
|
|
|