Skip to content

Instantly share code, notes, and snippets.

@brian-gates
Created February 20, 2014 18:33
Show Gist options
  • Save brian-gates/c5456101401ca2d4409d to your computer and use it in GitHub Desktop.
Save brian-gates/c5456101401ca2d4409d to your computer and use it in GitHub Desktop.
Oboe headers
oboe({
url : 'http://localhost:3000',
method : 'GET',
headers : { "Cookie": document.cookie },
});
oboe({
url : 'http://localhost:3000',
method : 'GET',
headers : { "Cookie": "test" },
});
oboe({
url : 'http://localhost:3000',
method : 'GET',
headers : { "Cookie": "test", "foo": "bar" }, // Request header field foo is not allowed by Access-Control-Allow-Headers
});
$.get('http://localhost:3000'); // works
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment