a306211321 发表于 2012-8-24 12:22:57

Codeigniter开启csrf protection的使用方法

在CI 2.0中有一個csrf(Cross Site Request Forgery) protection的功能

如果打開這個功能的話
post表單給server 會吐 error 500
An Error Was Encountered
The action you have requested is not allowed.
會無法執行


请问一下这个功能是的原理是什么呀?要怎么实现呢

zsj1029 发表于 2012-9-23 20:24:33

使用ci的表单函数form_open
ajax的时候见这个
http://codeigniter.org.cn/forums/thread-14388-1-1.html
页: [1]
查看完整版本: Codeigniter开启csrf protection的使用方法