wagtail-react-blog icon indicating copy to clipboard operation
wagtail-react-blog copied to clipboard

ALLOWED_HOSTS can't be blank

Open eugenehiggins opened this issue 4 years ago • 0 comments

In step 2.4 you say to run the devserver which gives an error:

Invalid HTTP_HOST header: 'api.local.test:8000'. You may need to add 'api.local.test' to ALLOWED_HOSTS.
Bad Request: /
[02/Nov/2021 16:10:32] "GET / HTTP/1.1" 400 71270
Invalid HTTP_HOST header: 'api.local.test:8000'. You may need to add 'api.local.test' to ALLOWED_HOSTS.

ALLOWED_HOSTS in settings.py needs to be edited to something like

ALLOWED_HOSTS = ['api.local.test', 'localhost', '127.0.0.1']

eugenehiggins avatar Nov 02 '21 16:11 eugenehiggins