Created
October 30, 2014 13:10
-
-
Save andredumas/0d9bd0da153719bc744d to your computer and use it in GitHub Desktop.
Posting JSON Cross Domain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<form action="http://remote.com/index.html" | |
method="post" | |
enctype="multipart/form-data" | |
target="remote" | |
onsubmit="window.open('about:blank', 'remote');"> | |
<input type="hidden" name="payload" value="{"key"="value"}" formenctype="application/json"> | |
<button>Submit</button> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment