问题
We have a load balancer for IIS ASP.NET Web Application which forwards all the https
requests as http
. Hence we required the X-Forwarded-Proto
header to identify https.
I'm able to see X-Forwarded-For
header but not the Proto
.
I'm checking in Request.Headers
Is there something missing or any alternative to know the original request was https ?
回答1:
X-Forwarded-Proto
header is explicitly set by the Load Balancer through IRule
. As the IRule
was not being applied X-Forwarded-Proto
header was missing.
来源:https://stackoverflow.com/questions/23220603/httprequest-header-x-forwarded-proto-missing