brotkrueml / typo3-matomo-integration

Matomo integration for TYPO3
https://extensions.typo3.org/extension/matomo_integration
GNU General Public License v2.0
4 stars 4 forks source link

[FEATURE] Apply CSP nonce value if given #22

Closed ohader closed 1 year ago

ohader commented 1 year ago

TYPO3 v12 introduced Content-Security-Policies. For creating the tracking <script> tag, a corresponding CSP nonce value has to be added as attribute.

Related: #7

ohader commented 1 year ago

See it in action at https://indiemusik-festival.de/events/festival-2023

ohader commented 1 year ago

So: Should we check for the feature flag?

Your observations were absolutely correct, there was a bug which has been fixed with https://review.typo3.org/c/Packages/TYPO3.CMS/+/79058 already - however, it will be released with TYPO3 v12.4.2 on June 13, 2023).

brotkrueml commented 1 year ago

@ohader Thank you for the contribution. Will take care of the tests in a separate commit.