#32578: Handle request.get_host() raising DisallowedHost in CsrfViewMiddleware._origin_verified() -------------------------------------+------------------------------------- Reporter: Chris Jerdonek | Owner: nobody Type: Uncategorized | Status: new Component: CSRF | Version: dev Severity: Normal | Resolution: Keywords: | Triage Stage: CsrfViewMiddleware,DisallowedHost | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Tim Graham): It might be better to perform host validation elsewhere in Django as suggested in #27575 so that `DisallowedHost` doesn't need to be caught everywhere. -- Ticket URL: <https://code.djangoproject.com/ticket/32578#comment:1> 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.2d8c68329e5203f9b044a97996e446f2%40djangoproject.com.