I recently tried integrating my self-hosted Plausible instance with my site, but I faced issues with the CSP.
I finally got it working, but I spent a few hours experimenting with another Hugo module and changing the server's response headers.
I didn't know much about CSP before. It would be helpful and time-saving if you could update the Plausible Analytics Guide to include that, in case of self-hosting, we also need to add the Plausible domain to connect-src and script-src.
Hello,
I recently tried integrating my self-hosted Plausible instance with my site, but I faced issues with the CSP.
I finally got it working, but I spent a few hours experimenting with another Hugo module and changing the server's response headers.
I didn't know much about CSP before. It would be helpful and time-saving if you could update the Plausible Analytics Guide to include that, in case of self-hosting, we also need to add the Plausible domain to
connect-src
andscript-src
.It might not be obvious to everyone, but now that I know, I will be more careful. And thank you for this amazing theme!