Reputation: 3170
I want to make a cross-domain request with ajax to get non-JSON(!) data (CSV-File). I'm using following code:
$.ajax({ "url": dataset.url, "dataType": "text", "crossDomain": true }).done(function(data) { });
But it is not working because of the cross-domain restriction. When i set the datatype to "jsonp", it's also not working because the data will be interpreted and i get syntax errors.
Are there any workarounds? Thanks.
Upvotes: 0
Views: 943
Reputation: 21233
You have following options:
Upvotes: 1