mikehostetler / amplify

AmplifyJS
http://amplifyjs.com
GNU General Public License v2.0
1.45k stars 143 forks source link

Does it support cross-domain requests with authentication? #64

Closed balupton closed 11 years ago

balupton commented 12 years ago

In the request documentation, there is Any settings found in jQuery.ajax().

However, doesn't appear to support xhrFields which is needed for cross domain authentication, see here

Does amplify request support cross-domain requests with authentication?

scottgonzalez commented 12 years ago

It's almost a direct pass-thru to $.ajax() so I don't see why this wouldn't work. See https://github.com/appendto/amplify/blob/master/request/amplify.request.js#L122 and https://github.com/appendto/amplify/blob/master/request/amplify.request.js#L202

Do you have an example of this working with $.ajax() but not with amplify.request()?

scottgonzalez commented 11 years ago

ping @balupton

balupton commented 11 years ago

Ah okay, that's good by me :) Haven't had a chance to give it a go yet so can't confirm yet.