Skip to content

Instantly share code, notes, and snippets.

@ravikiranj
Created October 14, 2014 02:26
Show Gist options
  • Save ravikiranj/abc813a77a27743ffd38 to your computer and use it in GitHub Desktop.
Save ravikiranj/abc813a77a27743ffd38 to your computer and use it in GitHub Desktop.
CORS Test HTML
<!DOCTYPE html>
<html>
<head>
<title>CORS Example</title>
<style type="text/css">
div {
border: 1px solid #C0C0C0;
padding: 10px;
border-radius: 10px;
margin: 5px;
}
.btn {
display: block;
margin: 10px 5px;
}
</style>
</head>
<body>
<div id="MSG">Error Stack</div>
<div id="STACK">Error Stack</div>
<div id="FILE">File</div>
<div id="LINE_NO">Line Number</div>
<input type="button" class="btn" onclick="window.clickMe();" value="Click Me!" />
<script src="http://enablecors.appspot.com/assets/js-cors/cors.js" crossorigin="anonymous"></script>
<!--<script src="http://enablecors.appspot.com/assets/js/no-cors.js"></script>-->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment