#95312SVG Style-Tag CSP-Block / Firefox-Bug
Description
Problem: SVG-Files with Style-Tag are rendered black in Firefox (or Chrome opened in seperate tab).
Related Information: https://www.sebkln.de/en/tutorials/http-security-header-part-2-csp/#svg-files
Firefox-Bug-Report: https://bugzilla.mozilla.org/show_bug.cgi?id=1262842
Workaround / Solution:
Adding this Part to .htaccess under /fileadmin (Line ~13/14)
<IfModule mod_headers.c>
<FilesMatch "\.(svgz?)$">
Header set Content-Security-Policy "default-src 'none'; frame-ancestors 'none'; style-src 'self' 'unsafe-inline'"
</FilesMatch>
</IfModule>
Feature request:
can we get an option to change the source of “resources-root-htaccess” which is used in “environment (installtool) -> fix folderstructure”?
web/typo3/sysext/install/Classes/FolderStructure/DefaultFactory.php
web/typo3/sysext/install/Resources/Private/FolderStructureTemplateFiles/resources-root-htaccess
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.