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
have: log in page users can try log in.
need: way set parts of successful response server local storage location, or cookie.
have: api endpoint accessing using ajax
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
Post a Comment