ajax - How to set and get values from cookie in EmberJS using ember-simple-auth -


excuse naivety, new sessions, cookie based authentication , python tornado. trying access api written in python tornado, , using ember cli client. can't seem set cookie values in request sent server. how 1 set cookie correctly in ajax/ember.js?

techs i'm using:

  • ember cli
  • ember simple auth
  • python tornado

situation

  1. have: log in page users can try log in.

  2. need: way set parts of successful response server local storage location, or cookie.

  3. have: api endpoint accessing using ajax

  4. need: way pass parts of log-in response data 'cookie' server throwing error saying cookie invalid or missing.

ok whomever running same problem, had set following ajax setting in "findall" function model, , on authenticate method.

... xhrfields: {     withcredentials: true }, success: succsfunction,  error: errorfunction... 

Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -