1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #31010 -- Allowed subdomains of localhost in the Host header by default when DEBUG=True.

This commit is contained in:
Gordon Pendleton
2019-11-23 21:17:31 -05:00
committed by Mariusz Felisiak
parent 3930ec1bf2
commit adb9661789
4 changed files with 10 additions and 4 deletions

View File

@@ -222,7 +222,8 @@ Pagination
Requests and Responses
~~~~~~~~~~~~~~~~~~~~~~
* ...
* If :setting:`ALLOWED_HOSTS` is empty and ``DEBUG=True``, subdomains of
localhost are now allowed in the ``Host`` header, e.g. ``static.localhost``.
Serialization
~~~~~~~~~~~~~