Disable all cookies in oTree
问题 In oTree, two cookies are created: sessionId and csrf_token . I want to disable both; however, I don't know how to do that. I know that when I use participant_label in the URL, I can avoid the sessionId -cookie. However, then I still have the csrf_token -cookie. Do you know how to unset it? I heard that django-cookieless should be a solution, but I don't know how to use that. 回答1: Ok, it's a bit untrivial. For injecting csrftoken in Django (which oTree is based on) they use CsrfViewMiddleware