Skip to content

Commit cec4802

Browse files
committed
Adding csrf
1 parent a10b969 commit cec4802

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ composer.lock
3232
/phpunit.xml
3333
.phpunit.result.cache
3434
###< phpunit/phpunit ###
35-
app_app_files.txt
35+
all_app_files.txt

config/packages/csrf.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Enable stateless CSRF protection for forms and logins/logouts
2+
framework:
3+
form:
4+
csrf_protection:
5+
token_id: submit
6+
7+
csrf_protection:
8+
stateless_token_ids:
9+
- submit
10+
- authenticate
11+
- logout

0 commit comments

Comments
 (0)