Reputation: 3847
Is it possible to Enable CORS in Web API , But Not in entire mvc project that has both (MVC5 + Web API 2) ?
currently i am using separate projects for WEB API 2 and MVC to enable CORS only in WEB API.
If Possible, Then How ?
Upvotes: 0
Views: 217
Reputation: 23680
The following tutorial appears to be specific to WebAPI 2 and doesn't mention anything about ASP.NET MVC:
http://www.asp.net/web-api/overview/security/enabling-cross-origin-requests-in-web-api
Upvotes: 1