简体   繁体   English

CI版本2中的csrf_exclude_uri?

[英]csrf_exclude_uri in CI version 2?

i have some problem using csrf_protection . 我在使用csrf_protection一些问题。 i want to hit example.com/test/index_post from a form in mysite.com/myform using post method form but when i submit the form error page 我想使用post方法表单从mysite.com/myform的表单中命中example.com/test/index_post ,但是当我提交表单错误页面时

The action you have requested is not allowed. 您请求的操作是不允许的。

showed. 显示。 I'm using CI version 2. i already know some solution using csrf_exclude_uri but it didnt work in CI version 2. is there other solution similiar with csrf_exclude_uri in CI version 2? 我正在使用CI版本2。我已经知道一些使用csrf_exclude_uri解决方案,但在CI版本2中不起作用。在CI版本2中是否还有与csrf_exclude_uri类似的解决方案?

根据我的研究和Joe的回答,唯一的方法是将CI 2升级到CI 3,因为CI 2没有该服务

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM