Skip to content

Instantly share code, notes, and snippets.

@tbeseda
Created June 9, 2011 20:23
Show Gist options
  • Save tbeseda/1017638 to your computer and use it in GitHub Desktop.
Save tbeseda/1017638 to your computer and use it in GitHub Desktop.
$.support.cors = true
post =
type: 'POST'
url: 'https://remote.bar'
data: myData
xhrFields:
withCredentials: true
success: (data) ->
console.log 'tada', data
error: (e) ->
throw 'error'
$.ajax post
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment