How can we overcome the CORS issue for ASP Net Web API
Add the cores package to you project
Install-Package Microsoft.AspNet.WebApi.Cors
Then add this setting in webapiconfig.cs class
config.EnableCors();
Add attribute to api controller or on it methods.
[EnableCors(origins: "http://abc.net", headers: "*", methods: "*")]
public class MyController : ApiController
{
}
More videos here...
What are new features of ASP.Net MVC 6
• New features ASP Net MVC 6, ASP.Net C...
What is ASP.Net MVC 6 ?
• What is MVC 6 Dot Net Core
What is Json?
• What is Json ? JavaScript based data ...
What is a restfull service ?
• What is Restful Service ?
What is ASP.Net Web API
• What is ASP Dot Net Web API ?
Latest in ASP.Net MVC 6
• Microsoft dot net MVC 6 New Features,...
ASP.Net Web API Tutorial 90% OFF
• Web API 2.0 - Learn Asp.Net Web API i...
ASP.Net Web API CRUD OPERATIONS
• Web API With Entity Framework | web a...
ASP.NET Web API OdataQuery Options Usage
• odata web api | Web API Odata Query O...
Hosting ASP.Net Web API in IIS and IIS Express.
• Hosting ASP NET Web API in IIS AND II...
Self Hosting ASP.Net Web API
• Self Hosting ASP NET Web API OWIN v...
Exeption Handling in ASP.Net Web API
• ASP NET WEB API Exception Handling
ASP.Net Web API and Bson format
• ASP NET Web API and bson Format
ASP.Net Web API XML and Json formats
• ASP NET Web API Xml And Json Data For...
ASP.Net Web API Media formatters
• ASP NET Web API Media Formatters
ASP.Net Web API Routing
• ASP NET WEB API Routing And Its Varia...
ASP.Net Web API and Entity Framework
• ASP NET Web API | Entity Framework 6
Unit Testing ASP Net Web API controller
• UNIT TESTING ASP NET WEB API
#EnableCorsinWebApi
#CorsIssueWebApi
#WebApiAndCors