i am trying to call a service through javascript and getting the following error:
XMLHttpRequest cannot load http://www.somthing.com/something.svc. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.somthing.com' is therefore not allowed access.
We also tried jsonp , but that not works!
We have tried setting cors certificate as below, but no joy
$.ajax({
type: 'GET',
headers: {"Access-Control-Allow-Origin: *"},
url: '//sharedservices.qa-worldventures.biz/MembershipService.svc/Subscriptions?source=DreamTrips&group=Perks&Locale=en-US',
dataType: "json",
contentType: "application/json",
success: onSuccessGetSubscriptionsId
});
Could you please hop in?