Closed dudarev closed 11 years ago
When visiting arbitrary view CSRF token is not set. As a result 403 errors when voting.
They can be fixed by visiting feedback form. Then the cookie is set.
This probably can be fixed by using CSRF Middleware.
http://stackoverflow.com/questions/6065503/why-does-django-not-generate-csrf-or-session-cookies-behind-a-varnish-proxy
https://github.com/mitar/django-missing/blob/master/missing/views.py#L7
Implemented with fcc1f5e8280c3ef59562b2b367150efd6d74e762
When visiting arbitrary view CSRF token is not set. As a result 403 errors when voting.
They can be fixed by visiting feedback form. Then the cookie is set.
This probably can be fixed by using CSRF Middleware.
http://stackoverflow.com/questions/6065503/why-does-django-not-generate-csrf-or-session-cookies-behind-a-varnish-proxy