Important: #106983 - Hardened access to module-related AJAX routes
See forge#106983
Description
AJAX routes which are exclusively used in a specific backend module can now be
configured to inherit access from the respective module. A new configuration
option
inherit
is introduced to control this behavior.
It is already added to several existing AJAX routes shipped by TYPO3 core.
Requests to routes with an appropriate access check in place will result in a 403 response if the current backend user lacks required permissions.
Example configuration
In the following example, the mymodule_
AJAX route inherits access
checks from the mymodule
backend module:
EXT:my_extension/Configuration/Backend/AjaxRoutes.php
return [
'mymodule_myroute' => [
'path' => '/mymodule/myroute',
'target' => \MyVendor\MyExtension\Controller\MySpecialController::class . '::mySpecialAction',
'inheritAccessFromModule' => 'mymodule',
],
];
Copied!