dongzanghui4624 2015-04-21 12:22
浏览 75
已采纳

使用CORS在ZendFramework 1.12中重定向

A partner is calling our shop in an iFrame. And get this Error Message in Firefox:

Load dinied by X-Frame-Options: https://www.xyz.de/shop/katalog/index does not permit cross-origin framing.

Original he called the sendLogin/index site. So I think the Core request is working. But in this Controller there is a redirection to the katalog/index Controller:

$this->_redirect('katalog/index');

I'm not sure what to do or where I have to look.

  • 写回答

1条回答 默认 最新

  • dsimib1625 2015-04-23 11:15
    关注

    This is a security feature some servers send. It is used to help prevent XSS attacks.

    You need to add a header to change the value of the header being sent. Something like

    header('X-Frame-Options ALLOW-FROM uri');
    

    Replacing uri with the payment gateway uri.

    For more information you can read the Mozilla X-Frame-Options response header

    Edit

    To remove a previous header in php, use header_remove:

    header_remove('X-Frame-Options');
    

    However, this only works for headers that have been set by PHP. If the header is being set by the server then you will need to change the php.ini file to remove the above header.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 2024-五一综合模拟赛
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭