Closed aixiaofei closed 3 years ago
We require setting a specific host not in debug mode, so set allowed_host = "127.0.0.1"
or potentially including the port. I don't remember which it is, try whichever works.
I'm closing it as it's solve, let me know if it isn't.
Thank u for you response, I have added the specific domain, but still have the issue
issue:
if with the port, still got the error "Bas Requst (400)", wo I think need't the port.
but I can login in apps.
Add the port number to allowed host
ok, Thank u, and I have added the port to allowed host, but got another issue:
I don't know why....
It' because you set it wrong, it should be:
[allowed_hosts]
allowed_host1 = xiaofei.online:64
allowed_host2 = 172.23.0.1:3735
Thank u for your response I have modified the configuration file
but still Bad request
hello, I found the issue: you will split the host in configuration file, so host_from_request will be host:port, but the validated_data.host always be host, so I think u need't to split or split both the validated_data.host and the host_from_request.
file: https://github.com/etesync/server/blob/master/etebase_fastapi/routers/authentication.py
I login in web client based on the derect link (not use the nginx), but still got the "wrong host name"
this is my etesync server config: