I have prepared a patch here:
https://github.com/jhhayashi/django/tree/jhh/allow_wildcard_host_redirects
--
Ticket URL: <https://code.djangoproject.com/ticket/31764>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* version: 3.1 => master
--
Ticket URL: <https://code.djangoproject.com/ticket/31764#comment:1>
* status: new => closed
* resolution: => needsinfo
Comment:
Hi Jordan. Thanks for the idea.
I'm not sure what to say:
How pressing is the need? Do we want to add the additional complexity here
to save updating a presumably small list of subdomains that we'd actually
redirect to? For those cases that truly need a dynamic wildcard value,
should we not prefer recommending a subclass in that case? (And so on.)
There's two steps:
* Adding `allow_wildcards` to
`django.utils.http.url_has_allowed_host_and_scheme()`
* And using that in Login/Logout view.
The handy
[https://github.com/django/django/compare/master...jhhayashi:jhh/allow_wildcard_host_redirects
Compare view].
Can I ask you to propose this on the DevelopersMailingList for a wider
audience? Please explain your use-case and hint at answers to the
questions here.
If there's consensus there then we can proceed.
Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/31764#comment:2>