Actions
Bug #103673
closedCSP: Admin Panel submodule script tag does not get nonce attached
Status:
Closed
Priority:
Should have
Assignee:
Category:
AdminPanel
Target version:
Start date:
2024-04-19
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
With EXT:schema, I am providing a custom admin panel module/submodule with JavaScript attached. The script tag does not get a nonce attribute for that submodule which results in a CSP violation when not allowing 'self', only nonce for scripts.
The reason for this: in ResourceUtility class the $attributes array (which holds the "useNonce" configuration) is not passed to the getAdditionalResourcesForModules() call.
Actions