dimanche 24 mai 2020

Axios POST request problem: Literally did not change code and now my request headers are too large

I'm making a MERN stack app and I am running into an issue that I can't solve. I had a working authentication system (login/register/logout etc) which had the member's page hidden behind. Everything worked great, I could register, login, then access the member's page with no issue. This morning, I was working on my project when I left to go pee. When I came back I found that ALL my server requests (GET, POST) were being rejected with error 431 (Request Header Fields Too Large). I did not change ANYTHING and now my code won't work.

The request headers sent with the login POST request is literally just one object with 2 string properties less than 15 characters long each. I know for a fact this is nowhere near the 8kb limit sent by node.

I have cleared all browser cache and restarted my computer but none of my requests are working still. Please help.




Aucun commentaire:

Enregistrer un commentaire