Skip to content

Commit baf8743

Browse files
committed
docs: add note about security.csrfProtection
1 parent 4434177 commit baf8743

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/install.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
These instructions assume that you have already [installed the CodeIgniter 4 app starter](https://codeigniter.com/user_guide/installation/installing_composer.html) as the basis for your new project, set up your `.env` file, and created a database that you can access via the Spark CLI script.
1414

15+
> **Note**
16+
> You must set ``Config\Security::$csrfProtection`` to `'session'` (or set `security.csrfProtection = session` in your `.env` file) for security reasons, if you use Session Authenticator.
17+
1518
Installation is done through [Composer](https://getcomposer.org). The example assumes you have it installed globally.
1619
If you have it installed as a phar, or othewise you will need to adjust the way you call composer itself.
1720

0 commit comments

Comments
 (0)