Closed nickwalkmsft closed 7 years ago
After deployment, browsing the site gives a yellow error screen with:
DisallowedHost at / Invalid HTTP_HOST header: ''. You may need to add u'' to ALLOWED_HOSTS.
Modifying ALLOWED_HOSTS in django_get_started/settings.py to { '*' } or { '' } fixes the issue.
Also mentioned in the comments at https://docs.microsoft.com/en-us/azure/app-service-web/app-service-web-get-started-python.
Thanks @nickwalkmsft for showing the fix. Fixed by commit c407f63
After deployment, browsing the site gives a yellow error screen with:
DisallowedHost at / Invalid HTTP_HOST header: ''. You may need to add u'' to ALLOWED_HOSTS.
Modifying ALLOWED_HOSTS in django_get_started/settings.py to { '*' } or { '' } fixes the issue.
Also mentioned in the comments at https://docs.microsoft.com/en-us/azure/app-service-web/app-service-web-get-started-python.