There are three basic ways to avoid the same origin policy.
Have the HTML document and the Ajax resource on the same origin
In this case the answer is "yes" as far as index.html
is concerned, and no for everything else.
Use CORS
In this case, the proxy must add suitable CORS headers and then the answer is "no".
Use JSONP
In this case, the proxy must reexpress the data using the JSONP format and then the answer is "no".