How do I send a cross-domain POST request via JavaScript?
Notes - it shouldn\'t refresh the page, and I need to grab and parse the response afterwards.
I think the best way is to use XMLHttpRequest (e.g. $.ajax(), $.post() in jQuery) with one of Cross-Origin Resource Sharing polyfills https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills#wiki-CORS