Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Pioruniasty's avatar

Logging out after few AJAX request

Hi,

I have a problem. When I'm using AJAX to save or fetch data from server-side (btw. I'm using Vue 2.0 and Axios) after few requets I get 403 or TokenMismatchException (funny thing - i don't include token in my POST, UPDATE and DELETE requests and they are working just fine). How to deal with it? Should I regenerate token everytime i do request?

0 likes
0 replies

Please or to participate in this conversation.