Vulnerability in EPiServer.Forms

Try our conversational search powered by Generative AI!

X-Forwarded-Proto support for when behind load balancer.



Is there a confiruation key to enable in web.config for X-Forwarded-Proto support

I know there is one for X-Forwarded-For as we have sucessfully used it in conjunction with our load balancer. Cant seem to find anything in docs when searching. 

Edited, Feb 13, 2019 12:56

What kind of configuration are you looking for? What should it do?

Do you want to do redirects to HTTPS, when requests are HTTP?

Feb 26, 2019 6:20

Awareness of if the request came in on HTTP or HTTPS.

Turns out there was some issue with the way the HttpContext was being accessed in the code so even though we were sending the header it wasnt working quite as expected. 

Mar 04, 2019 9:36

Okay. Then you are right: you don't need to make any changes to the web.config file.

If you need the HttpContext in a service class (or similar), remember that you can inject a ServiceAccessor<HttpContextBase>. It works for singleton services, as well. For controllers and views, always use the Context property of the class itself.

Mar 05, 2019 8:02
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.