Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post error: ALLOWED_HOSTS from local device #14

Open
hpsaturn opened this issue Aug 6, 2019 · 1 comment
Open

Post error: ALLOWED_HOSTS from local device #14

hpsaturn opened this issue Aug 6, 2019 · 1 comment
Labels
question Further information is requested

Comments

@hpsaturn
Copy link
Member

hpsaturn commented Aug 6, 2019

Maybe we need add documentation for add a local network or IP devices on ALLOWED_HOSTS. With the current documentation, we get the next error from a local device:

[06/Aug/2019 09:19:22] "POST /points/save/ HTTP/1.1" 400 60060
Invalid HTTP_HOST header: '192.168.178.37:8000'. You may need to add '192.168.178.37' to ALLOWED_HOSTS.
@hpsaturn hpsaturn changed the title Tests from local device Post error: ALLOWED_HOSTS from local device Aug 6, 2019
@hpsaturn hpsaturn added the question Further information is requested label Aug 6, 2019
@hpsaturn
Copy link
Member Author

hpsaturn commented Aug 6, 2019

issue fix: adding directive in development.py

ALLOWED_HOSTS = ['192.168.178.37' ]

I will do a PR for enter it on documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant