Click here to Skip to main content
14,929,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Following Error Showing In Ajax Call
XMLHttpRequest cannot load http://demo.play2learn.in/service/AssessmentListMobileService.asmx/set_UserRegistration_Details. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin

How To Call Cross Domain Webservices.
And Which Setting Required on Server and Local Pc To call Cross Domain Services.
Posted
Comments
[no name] 14-Sep-15 4:35am
   
Generally browser prevents to call CORS webservice. So you need to enable CORS in webservice. See below link that might help you:

http://www.asp.net/web-api/overview/security/enabling-cross-origin-requests-in-web-api

https://codequirksnrants.wordpress.com/2014/04/18/using-jquery-ajax-to-talk-to-asp-net-asmx-web-services/
Rahulgupta.hanu 14-Sep-15 6:35am
   
how to enable cors in 4.0 framework Webservice

Enable CORS in your Web Service.

Please see below link.

http://www.asp.net/web-api/overview/security/enabling-cross-origin-requests-in-web-api
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900