Skip to content

error:The token should exist in the storage at this point #143

Answered by forgedhallpass
nxsmcaspani asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @nxsmcaspani

I took a look at the discussion and ran the test application as well but I'm afraid it didn't helped me much.

What do you mean by did not help much? Based on the output it seems that you should have managed to start the test web application. If you open it in a browser on port 8080, you should be able to play around with it and see how it behaves.

"The token should exist in the storage at this point"

In case of a stateful application, CSRFGuard defaults to the SessionTokenKeyExtractor implementation. You've either received the error because:

  1. there was no servlet container session created, hence a ContainerSession could not be created
  • make sure you've mapped the f…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by forgedhallpass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants