CodeIgniter Forums
csrf_exclude_uris with regex - 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: csrf_exclude_uris with regex (/showthread.php?tid=73381)



csrf_exclude_uris with regex - culkus - 04-18-2019

Hi Guys,

Looking for a bit of help with getting wild cards into the csrf_exclude_uris.

I want to exclude all urls that are like the following /(anything)/page/view

I tried the following \/*\/page\/view but no dice.

Many thanks for any help

Thanks

Colin


RE: csrf_exclude_uris with regex - php_rocs - 04-18-2019

@culkus,

Maybe this can help you... https://forum.codeigniter.com/thread-1683.html

Also, what version of CI are you using?