-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid CSRF Token #6
Comments
Hi @lasha94 , |
I have already added it. This is my script.
When i make get request to http://localhost:3000/api/token it doesnt add cookie, and when i make post request im getting {"statusCode":403,"message":"CSRF token not found"} then it adds cookie, and after that im getting this on every request {"statusCode":403,"message":"Invalid CSRF Token"} |
I thought it withCredentials: true needed only for post request. I added it to getToken request too and now it works. Thank you. Dependencies need update, package doesnt work on latest nest project. |
Hello, im using your package, when i try with postman it works but if send requests from angular im getting Invalid CSRF Token
The text was updated successfully, but these errors were encountered: