【问题标题】:Load denied by X-Frame-Options: ccavenue iframe kitX-Frame-Options 拒绝加载:ccavenue iframe 套件
【发布时间】:2015-11-09 01:36:03
【问题描述】:

我收到以下错误

X-Frame-Options 拒绝加载: http://www.sarvins.com/checkout/onepage/failure/_secure%20/1/ 没有 允许跨域框架。

【问题讨论】:

  • 那么,你的问题是什么?
  • 基本上我使用 iframe 集成为:<iframe src="<?php echo $production_url?>" id="paymentFrame" width="482" height="450" frameborder="0" scrolling="No" ></iframe> 但是由于上述错误而没有显示。由于我的域不在 ssl 上,因此不确定它是否由于 https 而发生
  • 这是一个 Web 服务器配置问题。已在 Web 服务器标头中设置了跨域 x-frame 选项以停止利用。请咨询您的托管服务提供商或查看您的主 .htaccess 文件进行修改,以便允许您从中提取 iframe 内容的特定网站。您可以使用 Firefox 的 Live HTTP Headers 插件查看正在发送的 x-frame 标头。

标签: php magento iframe cross-domain x-frame-options


【解决方案1】:

是的,我也遇到了这个问题,我已经解决了 有 3 种类型的提交自定义数据,iframe 和 non-seemless 如果您想要 iframe 集成,您必须这样做
当您在 ccavenue 中提交表单时,就像是

集成套件 参数名称:参数值: 必填信息

                <input readonly="readonly" type="hidden" name="tid" id="tid" value=""/>



            <!-- <tr>
                <td>Order Id    :</td><td><input type="text" name="order_id" value="123654789"/></td>
            </tr> -->
            <tr>
                <td>Amount  :</td><td><input type="readonly" id="amount" name="amount" value="6000.00"/></td>
            </tr>
            <tr>
                <td>Currency    :</td><td><input type="readonly" name="currency" value="INR"/></td>
            </tr>
              <tr>
    <input type="hidden" name="redirect_url" value="http://api.jeenees.com/ccavResponseHandler"/>
            <input type="hidden" name="cancel_url" value="http://api.jeenees.com/ccavResponseHandler"/>

                <input type="hidden" name="language" value="EN"/>

         <tr>
            <td>Billing Name</td>
            <td><input type="text" name="billing_name" value="Peter" /></td>
        </tr>
        <tr>
            <td>Billing Address:</td>
            <td><input type="text" name="billing_address"
                value="Santacruz" /></td>
        </tr>
        <tr>
            <td>Billing City:</td>
            <td><input type="text" name="billing_city" value="Mumbai" /></td>
        </tr>
        <tr>
            <td>Billing State:</td>
            <td><input type="text" name="billing_state" value="MH" /></td>
        </tr>
        <tr>
            <td>Billing Zip:</td>
            <td><input type="text" name="billing_zip" value="400054" /></td>
        </tr>
        <tr>
            <td>Billing Country:</td>
            <td><input type="text" name="billing_country" value="India" />
            </td>
        </tr>
        <tr>
            <td>Billing Tel:</td>
            <td><input type="text" name="billing_tel" value="9718165631" />
            </td>
        </tr>
        <tr>
            <td>Billing Email:</td>
            <td><input type="text" name="billing_email"
                value="testing@domain.com" /></td>

如果你希望你的 ccavenue 页面在框架中,那么你有两个在其中添加这个参数

<td><select id="frame" name="integration_type">

 <option value="iframe_normal">iframe_normal</option>

</select></td>

然后当您在 ccavenue 中提交您的 from 时,它会自动检测它是 iframe 表单

【讨论】:

    猜你喜欢
    • 2013-02-01
    • 1970-01-01
    • 2014-07-27
    • 2014-09-06
    • 2015-06-04
    • 1970-01-01
    • 1970-01-01
    • 2014-11-14
    • 2014-08-06
    相关资源
    最近更新 更多