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

[登陆异常] 分离后的前端,登陆后会自动回退到登陆界面 #2

Open
hzhhzhhzh opened this issue Sep 25, 2020 · 8 comments

Comments

@hzhhzhhzh
Copy link

hzhhzhhzh commented Sep 25, 2020

打开分离后的后端,输入账号密码之后会登陆进去,
密码验证后加载控制面板
Pic
但是当加载完后会自动退回后端登陆页面

这是检查后的报错
err
主要是:
VM330 umi.js:1 GET https://xxx.com/api/v1/user/comm/config 403
VM330 umi.js:1 GET https://xxx.com/api/v1/user/info 403
VM330 umi.js:1 GET https://xxx.com/api/v1/user/getSubscribe 403
VM330 umi.js:1 GET https://xxx.com/api/v1/user/getStat 403
VM330 umi.js:1 GET https://xxx.com/api/v1/user/notice/fetch 403
还会出net::ERR_ABORTED 403

@hzhhzhhzh hzhhzhhzh changed the title [登陆异常] 分离后的前端,登陆后会自动回退到登陆见面 [登陆异常] 分离后的前端,登陆后会自动回退到登陆界面 Sep 25, 2020
@pudding1111
Copy link

删除index.html中的<script async src="https://www.googletagmanager.com/gtag/js?id=G-P1E9Z5LRRK"></script>

@jitdor
Copy link

jitdor commented Dec 25, 2020

和你一样的问题,删了GoogleTag还是一样,最后直接reverse_proxy算了。

删除index.html中的<script async src="https://www.googletagmanager.com/gtag/js?id=G-P1E9Z5LRRK"></script>

@ec000
Copy link

ec000 commented Apr 1, 2021

同样的问题,未解

@yuanweize
Copy link

同问

@musahbb
Copy link

musahbb commented Jul 21, 2021

anyone know how to fix this?

@Ymjie
Copy link

Ymjie commented Aug 5, 2021

实测 Chrome92内核浏览器出现此问题

@moranno
Copy link

moranno commented Aug 27, 2021

我也是这样,有啥建议么?

@xcxnig
Copy link

xcxnig commented Nov 24, 2021

常见问题
Q:前后端分离后登陆后立马退出是怎么回事?
A:前段使用的域名跟后端使用的域名必须是同一个根域。

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

9 participants