-
Notifications
You must be signed in to change notification settings - Fork 17
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
支持模拟登录 #7
Comments
开发时模拟登录这块我也在找更好的方式来处理。 不知道有没有其他更好的方式来处理,感觉我现在的使用方式有点别扭。 |
这个可以通过前端proxy的方式解决,在我的另一个脚手架做了这个方案,cloud-starter-kit,现在只需要加到uba中去。 |
@GuoYongfeng 前端proxy没问题,现在都是这么做,只不过是需要后端再写一个登录服务并写入.yonyou.com域的方式刚觉怪怪得 |
参考request auth |
@Jerret321 有具体的方案吗?发来参考参考 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
需求描述
前端在本地起的服务,通过ajax去模拟请求后端的接口数据。但后端的接口加了shiro拦截,需要用户登录之后才能访问接口数据。
期望解决方案
在
uba.config.js
中提供可配置字段,配置登录的接口地址、用户名、密码,然后启动本地服务之后,便可实现通过代理的方式去模拟登录,从而获取到接口数据。The text was updated successfully, but these errors were encountered: