Skip to content

Instantly share code, notes, and snippets.

@xetorthio
Created July 6, 2012 16:20
Show Gist options
  • Save xetorthio/3061141 to your computer and use it in GitHub Desktop.
Save xetorthio/3061141 to your computer and use it in GitHub Desktop.
Test meli CORS support
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
</head>
<body>
<script>
$(document).ready(function() {
$.ajax({url:"https://api.mercadolibre.com/sites", dataType:"json"}).done(function(data) {console.log(data);}).fail(function(){console.log("error")});});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment