I am trying to enable HTTPS everywhere in my MVC application. In my FilterConfig.cs I have added the following line:
filters.Add(new RequireHttpsAttribute());
However, when navigating to the site, all functionality is available via HTTP, and HTTPS can only be used if the user explicitly specifies this in their browser's address bar.
When this line of code is present in my local version of the app, it stops working, and I can no longer use HTTP (as I would expect).
I am hosting the application on Azure. Am I missing something?