You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How has everyone solved the missing csrftoken problem with the liveapi feature? I had to hack the liveapi client to set the X-CSRFTOKEN header by reading from the cookie. I wonder if it's the library's responsibility to do that?
The text was updated successfully, but these errors were encountered:
Issue is still open, so it might help someone.
I had similar issue when using both TokenAuthentication and SessionAuthentication backends.
When user is logged in via regular django rest framework login form, django always will check for csrftoken. Trying to get authtoken without csrftoken then results in failure.
Solution is to just log out, then csrftoken is not required, and you can work with api using just authtoken.
Hello again,
How has everyone solved the missing csrftoken problem with the liveapi feature? I had to hack the liveapi client to set the X-CSRFTOKEN header by reading from the cookie. I wonder if it's the library's responsibility to do that?
The text was updated successfully, but these errors were encountered: