Origin http: // localhost: 1716 no está permitido por Access-Control-Allow-Origin
Tengo este error
XMLHttpRequest no puede cargarhttp://localhost:81/Test/Service.svc/SetJSON
. Origenhttp://localhost:1716
no está permitido por Access-Control-Allow-Origin.
cuando llamo al servicio web wcf usando jquery.
$.ajax({
type: 'POST',
url: webmethod,
data: '{"data":"Darshana"}',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
alert(msg.d);
},
error: function (e) {
alert("Unavailable");
}
});
¿porqué es eso
alguna ayuda. gracias ..