Quantcast
Channel: ASP.NET MVC / Web API / Web Pages
Viewing all articles
Browse latest Browse all 7925

Created Issue: Put EnableCors under namespace System.Web.Http [913]

$
0
0
The HttpConfiguration extension EnableCors is under namespace System.Web.Http.Cors in recent build. As a result, to enable cors in WebApiConfig you need to include 'using System.Web.Http.Cors'.

In contrast with EnableSystemDiagnosticsTracing, which is under System.Web.Http, the later enable cleaner user code.

Viewing all articles
Browse latest Browse all 7925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>