Hi there,
I’m currently working on the CSP feature of TYPO3. Which is quite cool in my opinion.
But I run into an error I can’t fix and need your help.
I’m using a PHP file
(my_theme/Configuration/ContentSecurityPolicies.php)
I need to add Source Scheme for data, because in my console I get the following error for CSP
Content-Security-Policy: (Report-Only Rule) The settings of the page would block the loading of a resource (font-src) on data:application/font-woff;charset=utf-8… because it violates the following directive : "default-src 'self'"
So I added
new Mutation(
MutationMode::Append,
Directive::FontSrc,
SourceScheme::data,
),
by adding this I get a
### (1/1) Error
Class "SourceScheme" not found
in the frontend.
Any ideas, how can I add a SourceScheme::data within the ContentSecurityPolicies.php?
Thanks in advance
Kind regards
Markus