timlrx / tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
https://tailwind-nextjs-starter-blog.vercel.app/
MIT License
8.54k stars 1.98k forks source link

Error analytics umami #806

Closed Karhdo closed 8 months ago

Karhdo commented 8 months ago

When attempting to load the script 'https://umami.example.com/umami.js', the browser refused to load it due to a Content Security Policy violation. The specific violation is related to the 'script-src' directive, which is set to "'self' 'unsafe-eval' 'unsafe-inline' giscus.app analytics.us.umami.is". Additionally, it's noted that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

image

image

image

Please, help me fix it :(((

timlrx commented 8 months ago

I don't see any script at the link, but in any case the instruction to fix it is right in the error message. You need to add umami.example.com to script-src. Please refer to https://nextjs.org/docs/app/building-your-application/configuring/content-security-policy for more info.