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

前端页面无限跳转登录页问题 #2021

Closed
1 of 3 tasks
WalkerWang731 opened this issue Aug 6, 2024 · 2 comments · Fixed by #2039
Closed
1 of 3 tasks

前端页面无限跳转登录页问题 #2021

WalkerWang731 opened this issue Aug 6, 2024 · 2 comments · Fixed by #2039
Labels
Milestone

Comments

@WalkerWang731
Copy link
Contributor

WalkerWang731 commented Aug 6, 2024

System Info / 系統信息

前端页面打开后,无限跳转登录和launch/llm页面
经过排查,是因为我的本地浏览器有一个默认的token cookie, 导致 这里的判断过不去,所以不会设置no_auth 的 cookie

setCookie('token', 'no_auth', { path: '/' })

建议 去除 if (!data.auth && cookie.token !== 'no_auth')cookie.token !== 'no_auth' 这个判断逻辑

更换cookie的key值:例如xinference-token

Running Xinference with Docker? / 是否使用 Docker 运行 Xinfernece?

  • docker / docker
  • pip install / 通过 pip install 安装
  • installation from source / 从源码安装

Version info / 版本信息

0.14.0

The command used to start Xinference / 用以启动 xinference 的命令

docker run -p 9997:9997 --gpus all xprobe/xinference:v0.14.0 xinference-local -H 0.0.0.0

Reproduction / 复现过程

  1. 浏览器先设置一个token的cookie

Expected behavior / 期待表现

改进cookie和sessionStorage的key值

@XprobeBot XprobeBot added the gpu label Aug 6, 2024
@XprobeBot XprobeBot added this to the v0.14.0 milestone Aug 6, 2024
@qinxuye
Copy link
Contributor

qinxuye commented Aug 6, 2024

可以更换key值。有兴趣贡献吗?

@WalkerWang731
Copy link
Contributor Author

可以更换key值。有兴趣贡献吗?

ok 我改一下稍后会提交PR

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

Successfully merging a pull request may close this issue.

3 participants