通过ajax将外部网站加载到我自己的网站 [英] Load external website into my own website through ajax

查看:111
本文介绍了通过ajax将外部网站加载到我自己的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将外部网站加载到我自己的现有页面中?

Is it possible to load an external website into my own existing page?

或者,这是否存在安全风险,是否会被允许,或者是不是太不寻常了,还有成就的负担?

Or, is this a security risk, and will it not be allowed, or is it too uncommon and a burden to accomplish?

如果是这样,我是否需要拨打ajax电话才能这样做?

If so, would I need to make an ajax call to do this?

谢谢。

推荐答案

Ajax:无法轻松 。它被称为跨域ajax请求,并不容易实现(参见 http://www.peachpit.com/blogs/blog.aspx?uk=Performing-Cross-Domain-Ajax-Requests )。

Ajax: Won't work easely. It's called cross-domain ajax requests and it's not easy to implement (see http://www.peachpit.com/blogs/blog.aspx?uk=Performing-Cross-Domain-Ajax-Requests).

IFrame:会有效。

IFrame: Will work.

这篇关于通过ajax将外部网站加载到我自己的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆