umijs / qiankun

📦 🚀 Blazing fast, simple and complete solution for micro frontends.
https://qiankun.umijs.org
MIT License
15.58k stars 2k forks source link

fix: loadMicroApp场景下也能设置全局的微前端配置。在umi使用qiankun的时候是用的loadMicroApp,目前发现添加withCredital之后,qiankun对子应用懒加载的js不会携带cookie #2972

Closed CaanDoll closed 3 weeks ago

CaanDoll commented 3 weeks ago
Checklist
Description of change
vercel[bot] commented 3 weeks ago

Someone is attempting to deploy a commit to the chencheng's projects Team on Vercel.

A member of the Team first needs to authorize it.

changeset-bot[bot] commented 3 weeks ago

⚠️ No Changeset found

Latest commit: aa0eab5ab95271d61ab403e935e2df48d4bc1bb6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

kuitos commented 3 weeks ago

https://qiankun.umijs.org/zh/faq#%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%E6%8B%89%E5%8F%96%E5%BE%AE%E5%BA%94%E7%94%A8-entry-%E6%97%B6-cookie-%E6%9C%AA%E6%90%BA%E5%B8%A6%E7%9A%84%E9%97%AE%E9%A2%98

umi 有对应的插件实现,qiankun 这里不需要额外支持,感谢您的贡献~

CaanDoll commented 2 weeks ago

@kuitos 您好,这里我们已经尝试过,无法对子应用异步加载的js生效。因为没有上面那段代码,加载异步js的时候用的是默认fetch option