J Santosh
J Santosh

Reputation: 3847

Enable CORS in Web API , But Not in entire MVC 5 project

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

Answers (1)

Luke
Luke

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

Related Questions