Tag Archive for jQuery

Cross domain AJAX call in JQuery

Currently I am working with a company about a site, due to policy, I do not have FTP access, but I will have to get a JSON from my own server (for testing).

Cross-domain AJAX call is not allowed by most modern browser due to security issue (same-origin policy), it does trouble me a bit since my habit of dirty coding all the time, and especially in case of this situation….

A bit of Googling ALWAYS comes in handy:
StackOverFlow – JQuery ajax cross domain

By using JSONP I am able to do cross-domain AJAX get now, good and great to make a post of it!

Wikipedia – JSONP