mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-07-22 04:15:24 -04:00
[DOCS]: 本地部署之后,访问web,登录成功后,访问其他空间等其他页面,老是返回401,跳到登录页面 #270
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @liulongli001 on GitHub (Nov 13, 2025).
Type of Documentation Change
Error/Typo fix
Documentation Page URL or Path
No response
Current Content
本地部署之后,访问web,登录成功后,访问其他空间等其他页面,老是返回401,跳到登录页面
Suggested Changes
希望能够正常访问
Reason for Change
No response
Code of Conduct
@dosubot[bot] commented on GitHub (Nov 13, 2025):
Hi @liulongli001! I'm Dosu and I’m helping the dify-docs team.
本地部署 Dify 后登录成功但访问其他页面反复 401 跳转登录,常见原因是本地环境的 Cookie、CORS 或环境变量配置不正确。近期 Dify 已将认证 token 存储方式从 localStorage 改为 HTTP-only Cookie,导致本地开发时如果 Cookie 没有正确设置或被浏览器拦截,就会出现 401 问题。
排查和修复建议:
这些配置调整后,Cookie 能被正常设置和携带,401 问题即可解决。如需进一步排查,可关注近期关于 Cookie、认证和 401 错误的相关 issue 和 PR。
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@kittyton commented on GitHub (Nov 25, 2025):
请问您这个问题解决了吗?怎么解决的
@dosubot[bot] commented on GitHub (Nov 25, 2025):
@crazywoola, the user kittyton has indicated that the issue is still unresolved and is asking how to solve it. Could you please assist them with the 401 error related to local environment cookie and CORS configuration?