• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CSRF Protection

#1
What else do I have to besides inserting 

PHP Code:
<input type="hidden" name="<?= csrf_token() ?>" value="<?= csrf_hash() ?>" /> 

inside my form?
Simpler is always better
Reply

#2
You could have simply used:
Code:
<?= csrf_field() ?>

The rest of the instructions are in the docs. Let me know if anything's missing there.
Support Development  • Practical CodeIgniter 3  •
Myth:AuthVulcan - CLI Tools for CI4
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.