Deactivated content security policy for tracking

This commit is contained in:
Kevin Veen-Birkenbach 2023-11-24 09:07:20 +01:00
parent 9d63fe69e1
commit 973c05b333

View File

@ -1,6 +1,5 @@
# Add CSP header
more_set_headers "Content-Security-Policy: default-src 'self'; img-src 'self' https://matomo.{{top_domain}}; script-src 'self' 'unsafe-inline' https://matomo.{{top_domain}};";
# Deactivate CSP header
more_set_headers "Content-Security-Policy: ";
# sub filters to integrate matomo tracking code in nginx websites
sub_filter '</head>' '<script>{{matomo_tracking_code_one_liner}}</script></head>';