mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-04 10:14:13 +08:00
Enable CSRF token validation on api requests
- Do no check csrf token on get requests. -- Angular does not send token on get or header requests
This commit is contained in:
parent
2a9fbb534f
commit
96803a827c
3 changed files with 6 additions and 2 deletions
|
@ -163,7 +163,7 @@ services:
|
|||
App\Security\CSRFValidationListener:
|
||||
tags: [ { name: kernel.event_listener, event: kernel.request, method: onKernelRequest, priority: 12 } ]
|
||||
arguments:
|
||||
$routes: [ ]
|
||||
$routes: [ '/api' ]
|
||||
$headerName: 'X-XSRF-TOKEN'
|
||||
|
||||
App\Engine\Service\FolderSync\FolderComparator:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue