#419 response code

16 messages · Page 1 of 1 (latest)

gilded flower
#

I was trying to build an api backend and a ReactJS frontend. However, whenever I attempt to login, I always get 419 response code, which I am aware is about the csrf token but I don't know what to change in my code.

plush quest
#

how are you trying to login

#

can you show me whole of boostrap.js

#

and session.php config file

wet idol
#
axios.defaults.withCredentials = true;
axios.defaults.withXSRFToken = true;
plush quest
#

yeha i was looking for that, and making sure he had set domain in session.php x

gilded flower
plush quest
#

nah its fine u don't have to its just default

#

axios.defaults.withCredentials = true;
axios.defaults.withXSRFToken = true;

#

i was just wondering if u had that ^^

gilded flower
#

I just put that and 419 is now gone and had been replaced by 500 error status code

#

Do you still need the session file?

obsidian iron
gilded flower
#

I am currently using v10.* 🙂