From http://stackoverflow.com/questions/298745/how-do-i-send-a-cross-domain-post-request-via-javascript