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.

Add EMBED_HOSTED_URL

Sukhpal Saini87a62fb61496
diff --git a/next.config.js b/next.config.js
index 8efb45bc1..061a48aa3 100644
--- a/next.config.js
+++ b/next.config.js
@@ -4,13 +4,15 @@ const pkg = require('./package.json');
const CLOUD_URL = 'https://cloud.umami.is';
+const EMBED_HOSTED_URL = process.env.EMBED_HOSTED_URL
+
const contentSecurityPolicy = `
default-src 'self';
img-src *;
script-src 'self' 'unsafe-eval';
style-src 'self' 'unsafe-inline';
connect-src 'self' api.umami.is;
- frame-ancestors 'self';
+ frame-ancestors `self ${EMBED_HOSTED_URL}`;
`;
const headers = [