Load external website into my own website through ajax

别等时光非礼了梦想. 提交于 2019-12-12 05:37:56

问题


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?

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

Thanks.


回答1:


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: Will work.



来源:https://stackoverflow.com/questions/4719866/load-external-website-into-my-own-website-through-ajax

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!