Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Fixed CSP and telemetry errors.

Mike Caoa75f6679b9dd
diff --git a/next.config.js b/next.config.js
index a155ece75..e684ae976 100644
--- a/next.config.js
+++ b/next.config.js
@@ -8,7 +8,7 @@ const contentSecurityPolicy = [
`img-src *`,
`script-src 'self' 'unsafe-eval' 'unsafe-inline'`,
`style-src 'self' 'unsafe-inline'`,
- `connect-src 'self' api.umami.is`,
+ `connect-src 'self' api.umami.is cloud.umami.is`,
`frame-ancestors 'self' ${process.env.ALLOWED_FRAME_URLS || ''}`,
];
diff --git a/src/app/(main)/App.tsx b/src/app/(main)/App.tsx
index 4b0931652..74be82922 100644
--- a/src/app/(main)/App.tsx
+++ b/src/app/(main)/App.tsx
@@ -27,7 +27,7 @@ export function App({ children }) {
{children}
<UpdateNotice user={user} config={config} />
{process.env.NODE_ENV === 'production' && !pathname.includes('/share/') && (
- <Script src={`telemetry.js`} />
+ <Script src={`/telemetry.js`} />
)}
</>
);