I want to fetch CSV using cross domain AJAX request. I am using jquery.
I know we can use JSONP to for cross domain ajax request, but here I have to fetch CSV not JSON.
Its a intranet site and require login, so I cannot use YQL.
Is there any other way. below is my code
        $.ajax({
        url: 'http://si-dtp-219:3333/WS/WS/dshbrdData?reportname=Svt',
        dataType : 'text',
        callback : callbackFunction,
        crossDomain : true,
        type: 'GET',
        timeout: 50000,
        success: function(res) {
            callbackFunction(JSON.stringify(res));
        },
        complete: callbackFunction,
         error: function(x, t, m) {
            if(t==="timeout") {
                alert("got timeout");
            } else {
                console.log(x);
                console.log(t);
                console.log(m);
            }
        }
    });