Ao Enviar o Post abaixo
$.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "/CmisWebRequests.asmx/GetMessageResponse", data: dataToSend, dataType: "json", async: true, error: function(ex) { alert("EXCEPTION: " + JSON.stringify(ex)); }, success: function (resp) { var messageResponse = resp.d; $("#response").text(JSON.stringify(resp)); $("#success").text(messageResponse.Success); $("#responseText").text(messageResponse.Response); }, complete: function() {
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "/CmisWebRequests.asmx/GetMessageResponse",
data: dataToSend,
dataType: "json",
async: true,
error: function(ex) {
alert("EXCEPTION: " + JSON.stringify(ex));
},
success: function(resp) {
var messageResponse = resp.d;
$("#response").text(JSON.stringify(resp));
$("#success").text(messageResponse.Success);
$("#responseText").text(messageResponse.Response);
},
complete: function() {
}
})
recedoRecedo a negação "Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource", como
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource
Como ceder essa permissão para determinado requisitante ?