找不到您请求的页面 - 使用 csrf 保护重新提交表单 CI

The page you requested was not found - Resubmit a form using csrf protection CI

尝试手动重新加载表单时...出现 404 错误。
找不到您请求的页面 - 404

你可以试试这个 - 扩展 MY_Securtiy class 并在 referer 上重定向页面。

create a file in application\core\MY_Security.php

/*  by Piku -trying to handle csrf resubmission error msg
 */

class MY_Security extends CI_Security {

    public function __construct()
    {
        parent::__construct();      
    }

    public function csrf_show_error()
    {
        header('Location: ' . htmlspecialchars($_SERVER['REQUEST_URI']), TRUE, 200);
    }
}