i am using ajax for web Api calling from C#.net . When i call the ajax function i geting this error <pre>Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:49956' is therefore not allowed access
$.ajax({ url: 'https://xxx.xxx.com/external/xx/token', type: 'POST', data: RequestBody, Accept: 'Application/Json', contentType: 'Application/Json', headers: { 'Authorization':'Integration mOB33m0=' }, beforeSend: function(request) { request.setRequestHeader("Authorization", "Integration bWE3Om0="); }, success: function (data) { debugger; }, error: function (xhr, textStatus, errorThrown) { debugger; } });
search in google but no appropriate answer i found.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)