Skip to content

Instantly share code, notes, and snippets.

@dfernandez79
Created December 10, 2012 18:48
Show Gist options
  • Save dfernandez79/4252467 to your computer and use it in GitHub Desktop.
Save dfernandez79/4252467 to your computer and use it in GitHub Desktop.
CORS Client example
$(function () {
var ul = $('<ul></ul>');
$.getJSON('http://corsexample.cloudhub.io/example/values')
.then(function (data) {
data.forEach(function (item) {
ul.append('<li>'+item+'</li>'); }) });
$('body').append(ul);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment