#100041Unexpected warning in environment status check after new CSP default for svg files in resources root htaccess
Description
The issue #93884 has been fixed with an updated CSP default for svg files in the resources (fileadmin) root .htaccess file.
...
# matching requested *.svg files only (allows using inline styles when serving SVG files)
<FilesMatch "\.svg">
Header set Content-Security-Policy "default-src 'self'; script-src 'none'; style-src 'unsafe-inline'; object-src 'none';"
</FilesMatch>
...
This now leads to an unexpected warning in the environment status check:
Unexpected server response https://www.mysite.localhost/fileadmin/b1626f66.tmp/531f7264.svg: weak Content-Security-Policy for this location "default-src 'self'; script-src 'none'; style-src 'unsafe-inline'; object-src 'none';"
This could be irritating for an admin as this is the desired CSP for svg files. Maybe the server response check also needs to be updated.