程序员茄子
全部
编程
代码
资讯
案例
综合
联系我们
微前端 相关技术文章
php
mysql
shell
go
vue
css
api接口对接
支付接口对接
wujie 子应用的 7 个生产事故:跨 realm 校验、origin 误用与 SW 注册边界
案例
wujie 子应用的 7 个生产事故:跨 realm 校验、origin 误用与 SW 注册边界
2026-11-05 21:31:47
一个 Vue 3 子应用同时跑 wujie 嵌入、独立访问、普通 iframe 三种形态,由此暴露 7 个事故:跨 realm 的 instanceof 让每次点击都报警、postMessage 的 targetOrigin 填了自己、URL 传 token 的页面漏登记导致幽灵 401、Service Worker 在 iframe 里注册必炸、bus 监听只 on 不 off 导致重复调用、$wujie 缺失白屏、大屏 resize 收不到宿主事件。每个都有现象、根因和修复代码。
wujie
微前端
Vue3
ServiceWorker
Web Components 微前端架构实战:从浏览器原生能力到生产级落地的全链路拆解
编程
Web Components 微前端架构实战:从浏览器原生能力到生产级落地的全链路拆解
2026-08-11 06:46:05
深度拆解 Web Components 微前端架构:Custom Elements、Shadow DOM、Form Associated、Declarative Shadow DOM 全链路实战,包含 Shell 应用设计、跨框架通信、事件总线、共享组件库、性能优化与踩坑清单。
Web Components
微前端
Shadow DOM
Custom Elements
前端架构
大家都在搜索什么?
devops
易支付
一个官网+多少钱
统一接受回调
统一回调
python
sub
node
宝塔日志
mysql
shell
ElasticSearch
css
vue
api接口对接
2025
支付接口对接
go
php
php回调