I am trying to call webservice method from ajax call as given. My web service is hosted in the same application.\[code\]$.ajax({ type: "POST", url: "http://1.1.1.1/demo/sblead.asmx/SBLeadsSave", data: "{'whenNeeded':'" + whenNeeded + "','howLong': '" + howLong + "','size': '" + Size + "','customerName': '" + name + "','mobile': '" + mobile + "','email': '" + email + "','comments': '" + comments + "','nextContract': '','unitLocation': '" + unitLocation + "'}", contentType: "application/json; charset=utf-8", dataType: "jsonp", callback: '?', crossDomain: true, success: function (response) { // debugger; var res = response.d; if (res == "True") { location.href = "http://1.1.1.1/SBleadSuccess.htm"; } else { alert('Data Saving failed please try again'); } }, failure: function (result) { alert(result.status + ' ' + result.statusText); }, beforeSend: setHeader\[/code\]Web service method is not getting invoke, when I see it using Chrome developer tools -->network i could see the response as Origin http://www.xxx.com is not allowed by Access-Control-Allow-Origin.It is working in test server , but not in production serverHow can I get through this problem.