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

https页面登录超时后,弹出的登录框跨域 #7829

Open
EcoleKeine opened this issue Feb 22, 2024 · 0 comments
Open

https页面登录超时后,弹出的登录框跨域 #7829

EcoleKeine opened this issue Feb 22, 2024 · 0 comments

Comments

@EcoleKeine
Copy link

用文字描述你遇到的问题

https页面登录超时后,弹出的登录框iframe的url是http导致跨域

重现方法

切换到https, 登录后放置页面等待登录超时后执行操作

预期行为

正常弹出登录框

版本
v3.10.21

额外信息
可能的原因
common.yaml

   bkLoginUrl: http://__BK_PAAS_PUBLIC_ADDR__/login/?app_id=%s&c_url=%s
   bkHttpsLoginUrl: https://__BK_PAAS_PUBLIC_ADDR__/login/?app_id=%s&c_url=%s

src/web_server/app/server.go
代码中没有判断https只使用了bkLoginUrl

	w.Config.LoginUrl = fmt.Sprintf(w.Config.Site.BkLoginUrl, w.Config.Site.AppCode, w.Config.Site.DomainUrl)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant