ASP.NET Web API Cross Origin Resource Sharing Support

WebAPI 2.0 offers built in support for Cross Origin Resource Sharing. It is a way to build services over HTTP; thus, makes it available to a wider audience of its clients that require HTTP implementation.

However, there is a caveat in using AJAX request to HTTP services that can only be made from URLs of the same origin. Web API 2.0 and ASP.NET MVC have moved to .NET Framework 4.5 which means you cannot try it out unless targeted for 4.5

In this post, we will enable and use Cross Origin Resource Sharing in Web API 2.0.

Read the rest of the tutorial here: http://www.dotnetcurry.com/ShowArticle.aspx?ID=921

Leave a Reply

Your email address will not be published. Required fields are marked *