matomo-org / plugin-AnonymousPiwikUsageMeasurement

Help making Matomo better by sending anonymized usage data to the creators the project, and/or to your own Matomo instance and/or to any other Matomo instance
https://plugins.matomo.org/AnonymousPiwikUsageMeasurement
GNU General Public License v3.0
4 stars 12 forks source link

Added code to update CSP policy header based on custom site url #64

Closed AltamashShaikh closed 3 years ago

AltamashShaikh commented 3 years ago

Description:

Added code to update CSP policy header based on custom site url, Fixes: #59

Review

tsteur commented 3 years ago

Looks good to me @justinvelluppillai

Could check if a host was actually returned by parse_url($customSiteUrl, PHP_URL_HOST) but as we're checking that the configured url looks like a URL I suppose this should be always the case anyway.

AltamashShaikh commented 3 years ago

@tsteur Added check for host