I want to make an AJAX call from www.mysite.com to api.mysite.com. Is this possible?
I've ready about document.domain, but as far as I can tell thats only good for cross DOM communication, such as through an iframe.
I'm also aware of CORS but am looking for a subdomain-specific solution, if there is one.
I looked at other questions before asking here and the only solutions I found were CORS (which I prefer not to use as the solutions I found for NGINx to do his were marked experimental) and proxies, which I don't want either for server load reasons.
Is there a way to do this?
Thanks