Using Ember-Simple-Auth (custom authenticator) and Ember.$.ajax()
Authentication procedure:
- Link to
authsite.com/login
, and log in there - If OK, external website redirects to
http://ift.tt/2fJO3NU
- I retrieve those parameters
- I can get a big XML file with a lot of info by making a request to
http://ift.tt/2gpnDQ9
if user is authenticated. Auth backend constraint: this request must come from the same IP as step 2.
I have a problem making this request because:
- Not allowed by Access-Control-Allow-Origin
- Not JSONP
- Cannot enable CORS
- Setting
crossDomain: true
and xhr credentials to true doesn't work either when doingEmber.$.ajax()
What are my options if I want to do everything in the front-end?
Aucun commentaire:
Enregistrer un commentaire