Skip to content

include csrf token when doing http testing request #1322

Answered by crbast
mortenko asked this question in Help
Discussion options

You must be logged in to vote

hi @mortenko 👋

I think you can just disable CSRF for testing

Its right way ?

Yep

Get CSRF token in controllers :

request.csrfToken

source : https://forum.adonisjs.com/t/how-to-access-csrf-token-from-controller/698

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mortenko
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