You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there an easy way for me to fix the issue where if I restart my sails server, then the Ember App reconnects the socket ok, however it does not refresh the CSRF token and so when i try and save a record I get an error Code 403 - CSRF mismatch from the sails server.
I tried inserting
this.set('csrfToken', false);
into line 380 of services/sails-socket.js but it did not seem to help me.. anyone else come across this issue before?
thanks.
Paul.
The text was updated successfully, but these errors were encountered:
Actually as an FYI, I did some more googling and discovered that by changing the session store in my sailsjs api (from internal memory to mongo in my case, but I assume redis would be the same), then the client side stored CSRF token is still 'valid' after a restart of the API.
So this masks/resolves the issue for me, but am still not sure if its a ember-data-sails problem or a sailsjs configuration issue.
Hi,
Is there an easy way for me to fix the issue where if I restart my sails server, then the Ember App reconnects the socket ok, however it does not refresh the CSRF token and so when i try and save a record I get an error Code 403 - CSRF mismatch from the sails server.
I tried inserting
into line 380 of services/sails-socket.js but it did not seem to help me.. anyone else come across this issue before?
thanks.
Paul.
The text was updated successfully, but these errors were encountered: