From ae6e9653aa067ceea04cafd92f538d44ce1bda54 Mon Sep 17 00:00:00 2001 From: Nikita Galaiko Date: Mon, 27 Feb 2023 12:43:57 +0100 Subject: [PATCH] adjst csp to work in production --- src-tauri/tauri.conf.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index e2ab76357..29ea8ea52 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -50,7 +50,13 @@ "targets": ["dmg", "updater"] }, "security": { - "csp": "default-src 'self'; img-src 'self' asset: https://asset.localhost" + "csp": { + "default-src": "'self'", + "img-src": "'self' asset: https://asset.localhost", + "connect-src": "'self' https://eu.posthog.com", + "script-src": "'self' https://eu.posthog.com", + "style-src": "'self' 'unsafe-inline'" + } }, "systemTray": { "iconPath": "icons/tray.png",