Skip to content Skip to sidebar Skip to footer

Cors Asp.net Webservice From Javascript

I'm trying to figure out how to make a regular html page (with javascript) get data from a WebService which I created in Visual Studio using Asp.Net. My final project is going to h

Solution 1:

You need a CORS library as part of your service. If you need it now, then look into the Thinktecture IdentityModel library:

http://brockallen.com/2012/06/28/cors-support-in-webapi-mvc-and-iis-with-thinktecture-identitymodel/

Otherwise wait for the next release of WebAPI:

http://brockallen.com/2013/03/13/cors-open-source-contribution-to-asp-net-and-system-web-cors/

http://aspnetwebstack.codeplex.com/wikipage?title=CORS%20support%20for%20ASP.NET%20Web%20API

Post a Comment for "Cors Asp.net Webservice From Javascript"