Skip to content
Discussion options

You must be logged in to vote

You're right. connect-src should allow the endpoint the tracker sends data to, not the script file, so pointing it at matomo.js doesn't help. Allowing the Matomo origin covers it:

SECURITY_HEADER_SCRIPT_SRC_ALLOW=https://analytics.example.com/matomo.js
SECURITY_HEADER_CSP_CONNECT_SRC=https://analytics.example.com

(or https://analytics.example.com/matomo.php if you'd rather keep it to the exact endpoint).

The docs page lives in the website repo, LycheeOrg/LycheeOrg.github.io, at src/content/docs/docs/administration/external-tracking.md, so a small PR there with this fix would be the quickest way to get it corrected.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@StrangeRanger
Comment options

@StrangeRanger
Comment options

@CaptainAni187
Comment options

@ildyria
Comment options

Answer selected by StrangeRanger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Bugs
Labels
None yet
3 participants