#32578: Handle request.get_host() raising DisallowedHost in CsrfViewMiddleware._origin_verified() -------------------------------------+------------------------------------- Reporter: Chris Jerdonek | Owner: nobody Type: Bug | Status: new Component: CSRF | Version: dev Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted CsrfViewMiddleware,DisallowedHost | Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Chris Jerdonek): > Test crashes because method is not set in this case. I updated attached test to use the POST method. It might be good to fix `_get_GET_no_csrf_cookie_request()` so that the method is indeed set to `GET`. -- Ticket URL: <https://code.djangoproject.com/ticket/32578#comment:6> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/067.fb349aa34249beb67f3e92d2a218c7c9%40djangoproject.com.