本地部署casdoor认证跳转不成功 #7125
Answered
by
Nalrsh
Nalrsh
asked this question in
Development Question | 开发问题
本地部署casdoor认证跳转不成功
#7125
-
回流地址都填了但他跳到7001端口就跳不过去了,但是我casdoor是在8000端口,又没有大佬碰到过类似的事情 POST /api/auth/signin/casdoor? 200 in 109ms |
Beta Was this translation helpful? Give feedback.
Answered by
Nalrsh
Mar 27, 2025
Replies: 2 comments 2 replies
-
给 Casdoor 加上一个环境变量 origin=http://localhost:8000 |
Beta Was this translation helpful? Give feedback.
2 replies
-
大家好 已经解决了问题 在本地部署如果casdoor登录一直不成功,可能是数据库的问题 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Nalrsh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
大家好 已经解决了问题
在本地部署如果casdoor登录一直不成功,可能是数据库的问题
需要执行这个命令 pnpm tsx ./scripts/migrateServerDB/index.ts【会有些报错 需要修改一些配置文件】
等数据库 database migration pass后就能成功登陆了!