title: CORS enable in Owin
body: <p>I have been trying to make CORS enable in an ASP.Net application running on OWIN.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>public class Startup
  {
      public void Configuration(IAppBuilder app)
      {
          //Enable CORS
          //Use JWTOwinAuth middleware
          //Use Nancy framework
          app     
              .UseCors(CorsOptions.AllowAll)                  
              .Use(typeof(JwtOwinAuth))
              .UseNancy();
  
      }
  }
  </code></pre>
  
  <p>The CorsOptions.AllowAll seems not to work and I get "No 'Access-Control-Allow-Origin' header is present on the requested resource".</p>
  
  <p>I already tried all suggestions from the net but still the solutions are not working.</p>