E_BAD_CSRF_TOKEN: Invalid CSRF Token #3162
Unanswered
feniljariwala82
asked this question in
Help
Replies: 1 comment 1 reply
-
Can you share the dev-tools screenshot of the request that react makes? Make sure the screenshot shows all the request headers |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Purpose: Make POST, PUT, DELETE request from React App with XSRF protection
Description: I am making a request from the React client to the Adonis server. Also, I followed the guide about adding XSRF-TOKEN as an "X-XSRF-TOKEN" header. But it's still throwing an error of E_BAD_CSRF_TOKEN: Invalid CSRF Token.
Note:
enableXSRFcookie: enabled,
I tried it in two ways,
But it is throwing the same error E_BAD_CSRF_TOKEN.
Can anyone guide me here? Your help will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions