C# .NET - Web api is not getting hit when coming from cross origin platform

Asked By Madhu krishna on 08-Sep-16 02:45 PM
we are experiencing an issue with webapi ..previously the webapi was configured under a website..now we had to create a replica of same website with few changes and deploy it as a virtual directory (Boston)and houston..
the moment we changed it to virtual directory it is going to error part and showing the alert :Unable to fetch data at this time

any suggestions would be greatly appreciated..

 //    url: "https://tools-itg.abc.com/Houston/worldwide-english/api/document/GetContentData",
$.ajax({
    //    url: "https://tools-itg.abc.com/Boston/worldwide-english/api/document/GetContentData",
    //    type: "POST",
    //    data: { 'inputData': data1 },
    //    aysnc: true,
    //    dataType: "json",
    //    //headers: { 
    //    //    "Content-Type": "application/json",
    //    //    "Access-Control-Allow-Methods": "POST" },
    //    success: function (data) {
    //        debugger;
    //        alert('success');
    //        //DisplayContent(data);
    //        //q.run();
    //    },
    //    error: function (request, status, error) {
    //        debugger;
    //        alert('failure');
    //        //stopProgress();
    //        //$("#dialog-message p").text("Unable to fetch data at this time. Please try later or contact Support");
    //        //$("#dialog-message").dialog('open');
    //        //q.run();
    //    }
    //});