We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ALLOWED_HOSTS
1 parent 1295f88 commit b600618Copy full SHA for b600618
{{ cookiecutter.name }}/src/app/conf/http.py
@@ -1,7 +1,7 @@
1
from app.conf.environ import env
2
3
4
-ALLOWED_HOSTS = ["*"] # host validation is not necessary in 2020+
+ALLOWED_HOSTS = ["*"] # Warning: Wildcard disables Host validation. Don't rely on Host header with this setting.
5
CSRF_TRUSTED_ORIGINS = [
6
"http://your.app.origin",
7
]
0 commit comments