Issue Bug Closed

#103673CSP: Admin Panel submodule script tag does not get nonce attached

Chris Müller 04/19/24, 08:03 updated 07/09/24, 15:35

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.

Reviews 2