Skip to content

Instantly share code, notes, and snippets.

@andredumas
Created October 30, 2014 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andredumas/0d9bd0da153719bc744d to your computer and use it in GitHub Desktop.
Save andredumas/0d9bd0da153719bc744d to your computer and use it in GitHub Desktop.
Posting JSON Cross Domain
<!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="{&quot;key&quot;=&quot;value&quot;}" 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