title: ASP.NET MVC RequireHttps Attribute not working
body: <p>I am trying to enable HTTPS everywhere in my MVC application. In my FilterConfig.cs I have added the following line:</p>
  
  <p><code>filters.Add(new RequireHttpsAttribute());</code></p>
  
  <p>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.</p>
  
  <p>When this line of code is present in my <strong>local</strong> version of the app, it stops working, and I can no longer use HTTP (as I would expect).</p>
  
  <p>I am hosting the application on Azure. Am I missing something?</p>