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

无法访问设置了'X-Frame-Options'的网页 #10

Open
vanloswang opened this issue Sep 7, 2022 · 6 comments
Open

无法访问设置了'X-Frame-Options'的网页 #10

vanloswang opened this issue Sep 7, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@vanloswang
Copy link

添加 百度 到桌面,无法打开页面,console报错如下:
Refused to display 'https://www.baidu.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
请问该情况是否可以处理或改进?

@royalknight56
Copy link
Owner

这种情况无法解决,因为百度设置了X-Frame-Options之后,只能在同域名的网站将其嵌入到iframe中。建议添加不做此限制的网站。https://cn.bing.com/

@vanloswang
Copy link
Author

是不是可以添加支持针对X-Frame-Options的网站,打开为浏览器新的tab页

@royalknight56 royalknight56 added the enhancement New feature or request label Sep 7, 2022
@royalknight56
Copy link
Owner

不错的建议,会考虑实现

@bugfan
Copy link

bugfan commented Jun 21, 2023

原理是借助iframe来开启模拟的浏览器窗口嘛~~

@royalknight56
Copy link
Owner

原理是借助iframe来开启模拟的浏览器窗口嘛~~

是的,如果后续有足够工时,可以考虑使用别的方式

@royalknight56
Copy link
Owner

安装浏览器插件解决跨域问题:

https://github.com/royalknight56/vtron-crx/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants