Spec seems clear enough. Seems like it’s still an open bug in Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1433933
Can you reopen the ticket, add the spec link to the description, and open a PR? Thanks! On Fri, 22 Nov 2019 at 06:31, אורי <u...@speedy.net> wrote: > 2090? > אורי > u...@speedy.net > > > On Thu, Nov 21, 2019 at 11:58 PM gordon <wgordo...@gmail.com> wrote: > >> Spec: >> >> - https://tools.ietf.org/html/rfc6761#section-6.3 >> >> It didn't seem to work on IE edge. At the rate of browser updates I >> expect all browsers to support this by 2090. But it does make development >> on Chrome nice now =) >> >> On Thu, Nov 21, 2019 at 4:49 PM Adam Johnson <m...@adamj.eu> wrote: >> >>> I’m all in favour of making development easier. Would be in favour of >>> this if I could see a source :) Also can you check the behaviour in more >>> browsers than Chrom(e|ium)? :) >>> >>> On Thu, 21 Nov 2019 at 21:40, Gordon <wgordo...@gmail.com> wrote: >>> >>>> Good afternoon, >>>> >>>> It seems pretty straightforward to me as a win with no downsides. >>>> Chrome resolves subdomains of localhost as localhost. I did a little >>>> searching (but forgot to keep the sources) and discovered that this >>>> behavior was intentional and spec compliant. This is extremely handy for >>>> local development since it allows one to test subdomains without fooling >>>> with network DNS or modifying host files. >>>> >>>> I opened ticket https://code.djangoproject.com/ticket/31010 and was >>>> asked to canvas for opinions. >>>> >>>> I think that updating the handling of ALLOWED_HOSTS in >>>> HttpRequest.get_host()from: >>>> >>>> # Allow variants of localhost if ALLOWED_HOSTS is empty and >>>> DEBUG=True. >>>> allowed_hosts = settings.ALLOWED_HOSTS >>>> if settings.DEBUG and not allowed_hosts: >>>> allowed_hosts = ['localhost', '127.0.0.1', '[::1]'] >>>> >>>> >>>> to >>>> >>>> # Allow variants of localhost if ALLOWED_HOSTS is empty and >>>> DEBUG=True. >>>> allowed_hosts = settings.ALLOWED_HOSTS >>>> if settings.DEBUG and not allowed_hosts: >>>> allowed_hosts = ['.localhost', '127.0.0.1', '[::1]'] >>>> >>>> >>>> would be safe and support this pattern without requiring any changes to >>>> settings files which is quite nice for new projects. Please let me know >>>> what you think =) >>>> >>>> Thanks, >>>> Gordon >>>> >>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Django developers (Contributions to Django itself)" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to django-developers+unsubscr...@googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/django-developers/b9e276f0-76f1-4a9c-be22-cb7286c20ec5%40googlegroups.com >>>> <https://groups.google.com/d/msgid/django-developers/b9e276f0-76f1-4a9c-be22-cb7286c20ec5%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >>> Adam >>> >>> -- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "Django developers (Contributions to Django itself)" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/django-developers/xcoAF9Gm_dI/unsubscribe >>> . >>> To unsubscribe from this group and all its topics, send an email to >>> django-developers+unsubscr...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-developers/CAMyDDM0ufpyu50t_tbACPrEwJ94LYTWGyfywGzooA7%3D3pVnXBw%40mail.gmail.com >>> <https://groups.google.com/d/msgid/django-developers/CAMyDDM0ufpyu50t_tbACPrEwJ94LYTWGyfywGzooA7%3D3pVnXBw%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django developers (Contributions to Django itself)" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-developers+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-developers/CAJc1Fha6-BVPtehCQQXjZaAdbeqhoUzxLVkW-06fnZD1VWfyEg%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-developers/CAJc1Fha6-BVPtehCQQXjZaAdbeqhoUzxLVkW-06fnZD1VWfyEg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "Django developers (Contributions to Django itself)" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-developers+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/CABD5YeGiXYXGwfWEC5z8oGvr7pwGVz%2BYgbCwAcis0kkMrBw2%3Dw%40mail.gmail.com > <https://groups.google.com/d/msgid/django-developers/CABD5YeGiXYXGwfWEC5z8oGvr7pwGVz%2BYgbCwAcis0kkMrBw2%3Dw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Adam -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMyDDM0kVNc3mgzvYkaukGMA8mRbMrhKmaZSOYKJtyVQVucr_w%40mail.gmail.com.