Skip to content

Ability to set and refresh token in HEADERS visiting pages by inertia-link #454

Answered by ajnsn
zablik asked this question in Help
Discussion options

You must be logged in to vote

@zablik In a typical Inertia/Laravel app there's some magic behind the scenes as the XSRF-TOKEN cookie is automatically added by Axios to every request and refreshed by Laravel when returning a 419. You just need redirect back and show a message to the user, like described here. ForGET requests there are typically no tokens needed at all.

In your case, things seem different. Here are some existing issues/answers, you could take a look at.

Also no…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zablik
Comment options

Answer selected by claudiodekker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants