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

前后端分离场景下跨域问题 #59

Open
icsaas opened this issue Oct 31, 2019 · 2 comments
Open

前后端分离场景下跨域问题 #59

icsaas opened this issue Oct 31, 2019 · 2 comments

Comments

@icsaas
Copy link

icsaas commented Oct 31, 2019

把smart用在前后端分离场景下,会出现跨域错误,目测是ssofilter下的截断请求后并redirect造成的,有没有办法解决,或者有什么其他比较好的方案吗?

@icsaas icsaas changed the title 前后端分离跨域问题 前后端分离场景下跨域问题 Oct 31, 2019
@littlebox692
Copy link

把smart用在前后端分离场景下,会出现跨域错误,目测是ssofilter下的截断请求后并redirect造成的,有没有办法解决,或者有什么其他比较好的方案吗?

没啥用,他这个filter会拦截你session里面是否有token,有的话才放过,没有的话就获取v_param的值,但是这里就尴尬了,获取了v_param还是返回一个false,后面会重定向。看ssofilter isAccessAllowed这里面的逻辑

@justdorfun
Copy link

justdorfun commented Jan 15, 2021 via email

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

3 participants