Welcome Guest, Not a member yet? Register   Sign In
Enabling CSRF to TRUE in CodeIgniter
#3

try something like in form
Code:
<input type="hidden" name="<?=$csrf['name'];?>" value="<?=$csrf['hash'];?>" />


do you also have:

Code:
$config['csrf_regenerate'] = TRUE;

in the controller that you send the form data to put :

Code:
echo $this->security->get_csrf_token_name();
        echo $this->security->get_csrf_hash();
CMS CI4     I use Arch Linux by the way 

Reply


Messages In This Thread
RE: Enabling CSRF to TRUE in CodeIgniter - by captain-sensible - 10-07-2022, 10:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB