mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-15 17:34:52 +03:00
Fix CVE-2018-1281
References: - https://nvd.nist.gov/vuln/detail/CVE-2018-1281 - https://bandit.readthedocs.io/en/latest/plugins/b104_hardcoded_bind_all_interfaces.html ``` Test results: >> Issue: [B104:hardcoded_bind_all_interfaces] Possible binding to all interfaces. Severity: Medium Confidence: Medium Location: ../local.py:4 More Info: https://bandit.readthedocs.io/en/latest/plugins/b104_hardcoded_bind_all_interfaces.html 3 # https://docs.djangoproject.com/en/3.1/ref/settings/#allowed-hosts 4 ALLOWED_HOSTS = ["localhost", "0.0.0.0", "127.0.0.1"] 5 ```
This commit is contained in:
parent
3b0b87e4cb
commit
242f50c038
|
@ -11,7 +11,7 @@ SECRET_KEY = env(
|
|||
default="!!!SET DJANGO_SECRET_KEY!!!",
|
||||
)
|
||||
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
|
||||
ALLOWED_HOSTS = ["localhost", "0.0.0.0", "127.0.0.1"]
|
||||
ALLOWED_HOSTS = ["localhost", "127.0.0.1"]
|
||||
|
||||
# CACHES
|
||||
# ------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user