We would find this valuable for the reason Jonas outlined. Health checks from AWS are sent without a host header, which causes the request to fail the host check. By whitelisting the health check path, it would simplify deployments to AWS and possibly others. Here's the workaround we use in production to support AWS health checks that may help give some more context: http://dpaste.com/2BS0C5M
-Matt On Fri, Sep 14, 2018 at 10:44 AM, Tim Graham <[email protected]> wrote: > What would be the value of that setting for your use case? > > On Friday, September 14, 2018 at 11:52:46 AM UTC-4, Jonas H wrote: >> >> Hi, >> >> I've started a discussion on https://code.djangoproject.com/ticket/29752 >> to add a new ALLOWED_HOSTS_IGNORABLE_URLS setting. >> >> The setting can become handy if you can't control the Host header sent to >> your application but still want to accept the request. An example of this >> is health checks made by AWS ECS/Fargate – google "django allowed_hosts >> aws" and find 16,000 results with tips how to work around the problem. >> >> I'd like to discuss the addition on this list as per Tim's triage. >> >> Jonas >> > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/django-developers. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-developers/48278799-baea-4943-91b0- > 4d1f2318c3a5%40googlegroups.com > <https://groups.google.com/d/msgid/django-developers/48278799-baea-4943-91b0-4d1f2318c3a5%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CA%2BSd1WcNRzR1WsN%2BeVW6V2Mr5N7W4kS4HEhWVpX%3DKa%3Dx9Y8%2Bvw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
