在iFrame中嵌入cs-cart网站 [英] Embedding a cs-cart website in an iFrame

查看:179
本文介绍了在iFrame中嵌入cs-cart网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为客户开发一个cs-cart网站,该网站希望允许将中性版本的网站嵌入其他网站。
我开发了第二家商店,中性皮肤(白色,没有标志...)
但是当我尝试将其嵌入到另一个网站的iframe中时,没有显示任何内容。其他网站的工作。
我必须使用相同的域名政策才能实现undestrad
什么可以阻止我的cs-cart网站在其他网站上显示?
可以做些什么来规避这种情况?

解决方案

发现它:

我在第86行的根路径
中的prepare.php文件中:

  //点击保护
标题(X-Frame-Options:sameorigin);

简单地评论了该选项,然后它就起作用了: - )


I am developing a cs-cart website for a customer, who wants to allow embedding of a "neutral" version of the site into other website. I have developed a second store, with neutral skin (white, no logos...) But when I try to embed it into an iframe on another site, nothing is shown. Other sites work. I undestrad this has to to with "same domain policy" What can be blocking my cs-cart website to ne shown in another site? What can be done to circumvent this?

解决方案

found it:

i was in the prepare.php file in root path around line 86:

// Click-jacking protection
header("X-Frame-Options: sameorigin");

simply commented the option and then it worked :-)

这篇关于在iFrame中嵌入cs-cart网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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