Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cec4802

Browse files
Adding csrf
1 parent a10b969 commit cec4802

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

‎.gitignore‎

Lines changed: 1 addition & 1 deletion
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‎

Lines changed: 11 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /