CodeIgniter Forums
Exclude url from csrf - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Exclude url from csrf (/showthread.php?tid=69444)



Exclude url from csrf - omid_student - 11-23-2017

Hello
I use auto CSRF in my project
I need use it only web panel
But when i use api in my app and post data,csrf show error "not allowed"
Can i limit csrf for special controller example for controller/*?


RE: Exclude url from csrf - omid_student - 11-23-2017

I found it
I use 'api/\S+' in exclude uri