HttpRequest header “X-Forwarded-Proto” missing

旧时模样 提交于 2019-12-12 01:25:38

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!