This gist demonstrates that cross-domain POST requests work.
To demo, visit http://bl.ocks.org/4540158
This gist demonstrates that cross-domain POST requests work.
To demo, visit http://bl.ocks.org/4540158
<html> | |
<body> | |
<p> Submit POST request to httpbin.org. Demonstrates that POST requests are cross-domain. </p> | |
<form action="http://httpbin.org/post" method="post"> | |
<label> Name: <input type="text" name="name" value="Evil Doer" /> </label> | |
<input type="submit" name="Submit" /> | |
</form> | |
</body> | |
</html> |
Note that this doesn't necessarily address cross domain POST requests via ajax: http://stackoverflow.com/questions/6708297/jquery-and-google-url-shortener-api
So we still need to actually check whether you can use JS to create an iframe, populate it with a form element, and then trigger that form.
I'm in truoble with a "block iframe" problem, I'm in trapped for two weeks, I will be crazy~~pls help me, help me
Background:
a page in domainA.com contains a iframe. After iframe loaded, imframe page execute it's js code, just a form.submit to cross-origin domainB.com, but throw error: Uncaught DOMException: Blocked a frame with origin "https://lowtouch-hahb.qa.webex.com" from accessing a cross-origin frame.
Supplement: just in Chrome 72.
Check out http://www.hurl.it/ that does the same thing.