I am trying to access a URL from a different domain, lets say www.url-one.com, that only serves up a JSON file and cannot serve up a JSONP file. This does not work for me using JQuery's ajax() function.
Here is what my code looks like:
$.ajax({
url : 'http://url-two.com'+sample,
async : false,
dataType : 'jsonp',
crossDomain: true,
success : function(data) {
// Some Other Code
}
}
What can I do to work around the same origin policy without relying on JSONP? Thanks in advance - I am having major problems with the proxy thing but I heard that it's possible.