How can you enable CSRF in CodeIgniter?

How can you enable CSRF in CodeIgniter?

Default Asked on June 7, 2018 in CODEIGNITER.
Add Comment
1 Answer(s)

    To enable CSRF make the following statement TRUE from FALSE in  application/config/config.php file.

    • $config[‘csrf_protection’] = TRUE;
    Senior Developer Answered on July 2, 2018.
    Add Comment

    Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.