Closed ohader closed 1 year ago
This change contains some commits that are relevant for TYPO3 v12 only, and are unrelated to CSP. I'm not sure whether there shall be a dedicated TYPO3 v12 version of ext:staticfilecache
. For instance commit 086f90c059384ef731fa6a62e7c8ab96cf0d0911 would only not work with TYPO3 v11.
Side-note: I was testing with TYPO3 v13-dev, that's why these changes were required. When just focussing on TYPO3 v12, there are not really a hard requirement. That being said, it probably would have been better to keep them in a separated pull request.
Hey @ohader looks good for me. The extension is pretty stable, and I think we could change the master to v12 & v13-dev. Could you adapt the composer.json requirements as well? Then we can merge the changes (even if the related core changes are no merged yet). Or do you suggest to wait for the core changes?! Regards, Tim
Sounds good. I'll continue here during the next few days. I don't see hard dependencies to those core settings.
Hey @ohader I will merge the changes and switch ore versions in the meta files in a few minutes...
Short description
Fully cacheable responses must avoid using Content-Security-Policy nonce values in HTTP headers and the generated HTML markup. This change adjusts the TYPO3
PolicyBehavior
to aim for cacheable responses and therefore to use static hash values instead of dynamic nonce values.Related Issues
389
More Details
validHtaccessHeaders
andvalidFallbackHeaders
were extended byContent-Security-Policy
(this has to be adjusted manually in the filesystem/settings.php
of the corresponding TYPO3 instance).htaccess
generator was adjusted to update the reporting URI that might potentially being used theContent-Security-Policy
HTTP header, e.g. the corresponding section in the generated.htaccess
file would look like this