|
Hi, Previous calls to I do the following to get the csrftoken, which I set into the AIOHTTPTransport headers and cookies I also set CSRF_TRUSTED_ORIGINS |
Replies: 2 comments
|
Hi @dpinol , Sorry for the late reply. So the issue is most likely being thrown when accessing the user itself, or Does it only happen for strawberry views, or for other views as well? |
|
Hi @bellini666, |
Hi @bellini666,
Thanks eventually I found a solution. The problem is that Django changes the csrf_token after logging a user in. So what I do is reload the token and assign it to the headers and cookies of the same connection. I guess we can close the issue, but I feel it shouldn't be so cumbersome.