How do you disable CSRF for live server tests in Django when using Selenium?
Any page the browser tries to visit with Selenium throws a CSRF failure. I've tried modifying my settings to remove django.middleware.csrf.CsrfViewMiddleware
from my MIDDLEWARE_CLASSES
and setting CSRF_COOKIE_DOMAIN
to self.live_server_url
but those had no effect.
Unfortunately, enforce_csrf_checks
doesn't seem to be supported when using Selenium.