You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
proxySandbox.js:182 Uncaught (in promise) TypeError: Illegal invocation
at Object.set (proxySandbox.js:182:1)
at t [as navigate] (oidc-client.min.js:8125:1)
at eval (oidc-client.min.js:7752:1)
What happens?
React子应用配置了proxy,本地开发可以访问后台接口:
这在子应用内如是正常工作的,但是把子应用集成到主应用的时候,api调用就不行了。
例如获取user detail接口在子应用8000端口
GET http://localhost:8000/api/v1/user/detail
正常返回user 信息;
但是在主应用3000端口返回的是主应用的HTML
最小可复现仓库
问题比较明显,没有提供线上demo
相关环境信息
补充
目前没有找到解决方案,希望可以提供一些帮助,谢谢(刚接触微前端,研究过single-spa,使用起来很费劲,所以想试试qiankun)。
The text was updated successfully, but these errors were encountered: