Skip to content
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

fix: 修改iframe创建的src地址,优化加载速度 #751

Closed
wants to merge 1 commit into from

Conversation

baixi233
Copy link

@baixi233 baixi233 commented Dec 12, 2023

  • 提交符合commit规范
  • npm run test通过
详细描述

截图

@yiludege
Copy link
Collaborator

感谢贡献!这个是啥原理,可以避免主应用代码运行吗

@yiludege
Copy link
Collaborator

image
试了一下子应用无法加载出来,还是跨域的

@yiludege
Copy link
Collaborator

改完代码,demo跑起来就报这个,子应用打不开

@baixi233
Copy link
Author

因为父应用生成空blob的地址是不会跨域的,而且因为是空内容是不会运行任何东西的;
感觉有很多关联的跨域处理之类的都可以不需要了,我再看一下

@yiludege
Copy link
Collaborator

yiludege commented Dec 14, 2023

因为父应用生成空blob的地址是不会跨域的,而且因为是空内容是不会运行任何东西的;
感觉有很多关联的跨域处理之类的都可以不需要了,我再看一下

这个地方blob、script、data、about等等我记得都试过了,但是子应用跑起来需要调用 history 路由api的时候还是报跨域错误,你可以在代码修改完后把demo跑起来试试,如果OK就解决了无界一个挺大的痛点

@baixi233
Copy link
Author

确实还是有问题

@baixi233 baixi233 closed this Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants