Using various methods to bypass a policy of the same origin , for example CORS (if you have access to the server where the files are located) or using analysis methods, for example, the getJSON
method in jQuery, do I need to use JSONP now?
(I actually fought for JSONP for a long time), I do not think it helped that some sites did not seem to notice it - for example, Google Maps docs claim that they return data as JSON, but do not mention that the same origin policy is naive of them, since most people know about problems and can get around them, or naive of me because you are too bogged down trying to understand the technical differences between JSON and JSONP?)
source share