【问题标题】:The action you have requested is not allowed - CI 3.0 internet explorer 11不允许您请求的操作 - CI 3.0 Internet Explorer 11
【发布时间】:2016-07-25 00:11:35
【问题描述】:

我在(仅)intent explorer 11 中的表单请求有问题(旧没有检查)。 Chrome 和 Firefox 都不错。

源html表单:

...
<form action="http://192.168.0.53/users/products/show/41" enctype="multipart/form-data" method="post" accept-charset="utf-8">
<input type="hidden" name="csrf_token_name" value="5ab6faa347ddf882ff50882c9835cfab" style="display:none;" />
...

配置 CI 3.0:

$config['csrf_protection'] = true;
$config['csrf_token_name'] = 'csrf_token_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;

用 csrf 键隐藏的 Codeginiter 自动基因输入。

为什么会这样?

ps。对不起我的英语:/我试试

【问题讨论】:

    标签: php post continuous-integration csrf


    【解决方案1】:

    我有解决办法:

    在元标记(标题)中:

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    

    改为:

    <meta http-equiv="x-ua-compatible" content="IE=9" >
    

    然后工作:)

    【讨论】:

      猜你喜欢
      • 2017-03-21
      • 2013-09-10
      • 2017-05-14
      • 2012-05-10
      • 2014-02-08
      • 2016-04-03
      • 2014-03-26
      • 2023-03-10
      • 1970-01-01
      相关资源
      最近更新 更多