mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
Add EMBED_HOSTED_URL
This commit is contained in:
parent
586529a5ca
commit
87a62fb614
1 changed files with 3 additions and 1 deletions
|
|
@ -4,13 +4,15 @@ const pkg = require('./package.json');
|
||||||
|
|
||||||
const CLOUD_URL = 'https://cloud.umami.is';
|
const CLOUD_URL = 'https://cloud.umami.is';
|
||||||
|
|
||||||
|
const EMBED_HOSTED_URL = process.env.EMBED_HOSTED_URL
|
||||||
|
|
||||||
const contentSecurityPolicy = `
|
const contentSecurityPolicy = `
|
||||||
default-src 'self';
|
default-src 'self';
|
||||||
img-src *;
|
img-src *;
|
||||||
script-src 'self' 'unsafe-eval';
|
script-src 'self' 'unsafe-eval';
|
||||||
style-src 'self' 'unsafe-inline';
|
style-src 'self' 'unsafe-inline';
|
||||||
connect-src 'self' api.umami.is;
|
connect-src 'self' api.umami.is;
|
||||||
frame-ancestors 'self';
|
frame-ancestors `self ${EMBED_HOSTED_URL}`;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const headers = [
|
const headers = [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue