csrf error solve. try 1
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
# Enable stateless CSRF protection for forms and logins/logouts
|
||||
framework:
|
||||
form:
|
||||
csrf_protection:
|
||||
token_id: submit
|
||||
|
||||
csrf_protection:
|
||||
stateless_token_ids:
|
||||
- submit
|
||||
- authenticate
|
||||
- logout
|
||||
# form:
|
||||
# csrf_protection:
|
||||
# token_id: submit
|
||||
# csrf_protection:
|
||||
# stateless_token_ids:
|
||||
# - submit
|
||||
# - authenticate
|
||||
# - logout
|
||||
|
||||
@@ -15,6 +15,15 @@ framework:
|
||||
storage_factory_id: session.storage.factory.native
|
||||
save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%'
|
||||
|
||||
when@prod:
|
||||
framework:
|
||||
session:
|
||||
handler_id: null
|
||||
cookie_secure: true
|
||||
cookie_samesite: lax
|
||||
storage_factory_id: session.storage.factory.native
|
||||
save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%'
|
||||
|
||||
#esi: true
|
||||
#fragments: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user