You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use ghcr.io/huggingface/chat-ui-db:latest to host ChatUI in docker. If PUBLIC_ORIGIN="http://localhost" in .env.local and visit ChatUI through http://localhost:3000, it works well. Then I try to replace localhost by my domain name qiangwulab.sjtu.edu.cn. For the sake of testing, I modify /etc/hosts so that qiangwulab.sjtu.edu.cn is resolved to 127.0.0.1. I visit ChatUI through http://qiangwulab.sjtu.edu.cn:3000. It does not work with a similar page as in #1057. The firefox console shows
Cookie “hf-chat” has been rejected because a non-HTTPS cookie can’t be set as “secure”.
#1057 says that I should use ALLOW_INSECURE_COOKIES=true. It still does not work, and the firefox console shows
Cookie “hf-chat” has been rejected because there is an existing “secure” cookie.
ALLOW_INSECURE_COOKIES=true seems to be Legacy. Thus, I also tried COOKIE_SAMESITE="lax" and COOKIE_SECURE=false. The effect is the same. The firefox console shows
Cookie “hf-chat” has been rejected because there is an existing “secure” cookie.
Is it possible to use http for domain name other than localhost?
Bug description
I use
ghcr.io/huggingface/chat-ui-db:latest
to hostChatUI
in docker. IfPUBLIC_ORIGIN="http://localhost"
in.env.local
and visitChatUI
throughhttp://localhost:3000
, it works well. Then I try to replacelocalhost
by my domain nameqiangwulab.sjtu.edu.cn
. For the sake of testing, I modify/etc/hosts
so thatqiangwulab.sjtu.edu.cn
is resolved to127.0.0.1
. I visitChatUI
throughhttp://qiangwulab.sjtu.edu.cn:3000
. It does not work with a similar page as in #1057. The firefox console shows#1057 says that I should use
ALLOW_INSECURE_COOKIES=true
. It still does not work, and the firefox console showsALLOW_INSECURE_COOKIES=true
seems to be Legacy. Thus, I also triedCOOKIE_SAMESITE="lax"
andCOOKIE_SECURE=false
. The effect is the same. The firefox console showsIs it possible to use
http
for domain name other thanlocalhost
?Steps to reproduce
Screenshots
Context
Logs
Specs
Config
Notes
The text was updated successfully, but these errors were encountered: