puresourcecode.com
$.ajax No 'Access-Control-Allow-Origin' header is present on the requested resource with WebAPI
I want to get data from a WebAPI with jquery $("#btnSend").click(function () { $("#sending").show(); $.ajax({ type: 'GET', url: '/Report/SendEmail?quote=18', crossDomain: true, success: function (msg) { if (msg == 'True') { alert('Email sent to the client'); } $("#sending").hide(); }, error: function (request, status, error) { $("#sending").hide(); } }); }); and it produce ‘No Access-Control-Allow-Origin’ header is...
Enrico