Invalid or missing CSRF token
This error message means that your browser couldn't create a secure cookie, or couldn't access that cookie to authorize your login. This can be caused by ad- or script-blocking plugins, but also by the browser itself if it's not allowed to set cookies.
How do I fix CSRF token error?
How to fix the error:
- Make sure you are using an up-to-date browser.
- Make sure your browser accepts cookies. Depending on your browser settings, you may have to enable them explicitly.
- Clear your cache and remove all cookies from your browser.
- Refresh the page.
How do I get my CSRF token?
1) In Chrome/Firefox, open the console by right clicking anywhere and chose "inspect"(for Chrome) or "inspect element"(for Firefox). Do a get request or login first while you see the request made , to get CSRF-TOKEN sent from the server. 5) In the next post request, use the CSRF-TOKEN from the previous request.