Issue Bug Closed

#105968CSP: Allow blob: and data:

Christian Eßl 01/21/25, 08:00 updated 12/02/25, 14:26

Description

If you add the mutation:

new Mutation(
            MutationMode::Extend,
            Directive::ImgSrc,
            new UriValue('blob:'),
        ),

TYPO3 will throw the exception:

Unsupported scheme "blob"; must be any empty string or in the set (http, https, ws, wss)

But both blob: and data: should be supported for dynamically inserted content.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 2

  1. Christian Eßl commented and changed status New Resolved <span data-processor="relativetime" data-value="2025-01-21T08:09:44+00:00" > 01/21/25, 08:09 </span>

    Ah, never mind. The correct mutation in this case would be:

    new Mutation(
                MutationMode::Extend,
                Directive::ImgSrc,
                SourceScheme::blob,
            ),