tbeseda
6/9/2011 - 8:23 PM

http://quickleft.com/blog/cookies-with-my-cors

$.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