I need to send a GET request to another domain preferably using jQuery. This isn’t a same origin policy bypass because I don’t need to get a response. For instance using JavaScript I know I can do this:
document.write('<img src="http://somedomain.com/someapp.php?data='+data+'>')
Is there a better way using jQuery?
You can create the
<img>element but do nothing with it…it’ll cause an immediate fetch, resulting in a GET request: