Setup
Hi. I'm deploying an ASP.Net Core application to AWS Elastic Beanstalk. The platform I'm running on is 64bit Amazon Linux 2/2.1.5 using Nginx as the proxy server software. I've got a pair of listeners for my load balancer set up in the environment configuration. They are set up as follows:
Port=443 Protocol=HTTPS SSL=certificate Process=default
Port=80 Protocal=HTTP Process=default
And I've got a single process:
Name=default Port=80 Protocol=HTTPS
Problem
On my ASP.Net Core server, I'm trying to check if the original client to the server is communicating over HTTPS or HTTP. As I understand, the X-Forwarded-Proto
header for requests should carry this information. However, the value of X-Forwarded-Proto
is always http
regardless of how a client connects to the server. Why is the X-Forwarded-Proto
not ever set to https
even when connected as so from my web browser?
Thanks in advance for any help!