Issue Bug Closed

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

Robert Vock 02/23/24, 16:12 updated 07/09/24, 15:33

Description

The UriValue class can not work with wss schemes. You will get an exception for Unsupported scheme “wss”.

Steps to reproduce:
1. Create a Configuration/ContentSecurityPolicies.php file
2. Add a configuration for a WorkerSrc:

return Map::fromEntries([
    Scope::frontend(),
    new MutationCollection(
        new Mutation(
            MutationMode::Append,
            Directive::WorkerSrc,
            new UriValue('wss://www.example.com:8080'),
        ),
    ),
]);

3. Enable CSP checking in frontend
4. Try to load the frontend.

Reviews 2