Skip to content

Instantly share code, notes, and snippets.

@horike37
Created February 4, 2019 05:51
Show Gist options
  • Save horike37/8ca3f1fba32f2b9bec5cfbe52c5e1bbf to your computer and use it in GitHub Desktop.
Save horike37/8ca3f1fba32f2b9bec5cfbe52c5e1bbf to your computer and use it in GitHub Desktop.
Ajax for Cors test
<!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