Created
February 4, 2019 05:51
-
-
Save horike37/8ca3f1fba32f2b9bec5cfbe52c5e1bbf to your computer and use it in GitHub Desktop.
Ajax for Cors test
This file contains 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 lang="ja"> | |
<head> | |
<script src="https://code.jquery.com/jquery-3.3.1.js"></script> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$.ajax({ | |
url:'<domain>', | |
type:'POST', | |
contentType: 'application/json', | |
dataType: 'json', | |
data:'{"Data": "some data","PartitionKey": "some key"}' | |
}) | |
.done( (data) => { | |
console.log(data); | |
}) | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment