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
The text was updated successfully, but these errors were encountered:
LJiangA
changed the title
Vite子应用开启 iframe 沙箱,本地dev报 DOMException:Blocked a frame with origin "xxx" from accessing a cross-origin frame 的错误
Vite子应用开启 iframe 沙箱,本地dev报 DOMException:Blocked a frame with origin "xxx" from accessing a cross-origin frame 等一些错误
Sep 12, 2024
Hello @LJiangA. In order to facilitate location and troubleshooting, we need you to provide a realistic GitHub repository.
您好 @LJiangA, 为了方便定位和排查问题,我们需要您提供一个重现实例,请提供一个尽可能精简的 GitHub 仓库地址。
问题描述
Vite子应用开启了
iframe
沙箱,且在主应用head的第一个元素插入了<script>if(window.parent !== window) {window.stop()}</script>
复现步骤
<micro-app name="vite-sub-app" url="http://localhost:5173/" iframe></micro-app>
<script>if(window.parent !== window) {window.stop()}</script>
上传截图
环境信息
The text was updated successfully, but these errors were encountered: