I have a normal JSON feed that I am polling at a url (normalJSONfeed). I am getting the cross origin policy error
each time. How can I alter the $.ajax
function to get around this limitation when I do not have any way of changing the JSON feed (in other words I can not wrap the JSON feed in a function call).
$.ajax({
type : "GET",
dataType : "jsonp",
url : '/normalJSONfeed',
data : {}
success: function(obj){
}
});
cross origin
has no relationship whatsoever with JSON vs VSONP. It just means that you are trying to query an URL that is not on the same server (protocol+domain+port) as the page it is called from. – Sycophancy