Hide 'strict-dynamic' from directive config

Created on 13 June 2024, 13 days ago
Updated 14 June 2024, 13 days ago

Problem/Motivation

'strict-dynamic' requires a hash or nonce to authorize corresponding assets since any other sources, like 'self' or domains, are ignored once it is enabled. Enabling it in the config form is likely to only block all assets since the module doesn't compute either.
A site currently wanting to use 'strict-dynamic' would need to alter the library asset elements rendered by core (to add a nonce, or to compute hashes), so should be adding 'strict-dynamic' in their own event subscriber as well.

Proposed resolution

Remove 'strict-dynamic' from the options that can be enabled for script-src on the configuration page.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada gapple

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024