From 8fa8cbfe6d5d319df57c1ffb2834337b79e9703d Mon Sep 17 00:00:00 2001 From: Kiril Videlov Date: Sat, 18 May 2024 16:28:19 +0200 Subject: [PATCH] fix: Updated connect-src to allow local connections for ollama --- crates/gitbutler-tauri/tauri.conf.nightly.json | 2 +- crates/gitbutler-tauri/tauri.conf.release.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/gitbutler-tauri/tauri.conf.nightly.json b/crates/gitbutler-tauri/tauri.conf.nightly.json index 0a9c135a0..8ffec482d 100644 --- a/crates/gitbutler-tauri/tauri.conf.nightly.json +++ b/crates/gitbutler-tauri/tauri.conf.nightly.json @@ -27,7 +27,7 @@ "csp": { "default-src": "'self'", "img-src": "'self' asset: https://asset.localhost data: tauri://localhost https://avatars.githubusercontent.com https://*.gitbutler.com https://gitbutler-public.s3.amazonaws.com https://*.gravatar.com", - "connect-src": "'self' https://eu.posthog.com https://eu.i.posthog.com https://app.gitbutler.com https://o4504644069687296.ingest.sentry.io ws://localhost:7703 https://github.com https://api.github.com https://api.openai.com", + "connect-src": "'self' https://eu.posthog.com https://eu.i.posthog.com https://app.gitbutler.com https://o4504644069687296.ingest.sentry.io ws://localhost:7703 https://github.com https://api.github.com https://api.openai.com http://localhost http://127.0.0.1", "script-src": "'self' https://eu.posthog.com https://eu.i.posthog.com", "style-src": "'self' 'unsafe-inline'" } diff --git a/crates/gitbutler-tauri/tauri.conf.release.json b/crates/gitbutler-tauri/tauri.conf.release.json index 6e9183e6e..d94f15487 100644 --- a/crates/gitbutler-tauri/tauri.conf.release.json +++ b/crates/gitbutler-tauri/tauri.conf.release.json @@ -27,7 +27,7 @@ "csp": { "default-src": "'self'", "img-src": "'self' asset: https://asset.localhost data: tauri://localhost https://avatars.githubusercontent.com https://*.gitbutler.com https://gitbutler-public.s3.amazonaws.com https://*.gravatar.com", - "connect-src": "'self' https://eu.posthog.com https://eu.i.posthog.com https://app.gitbutler.com https://o4504644069687296.ingest.sentry.io ws://localhost:7703 https://github.com https://api.github.com https://api.openai.com", + "connect-src": "'self' https://eu.posthog.com https://eu.i.posthog.com https://app.gitbutler.com https://o4504644069687296.ingest.sentry.io ws://localhost:7703 https://github.com https://api.github.com https://api.openai.com http://localhost http://127.0.0.1", "script-src": "'self' https://eu.posthog.com https://eu.i.posthog.com", "style-src": "'self' 'unsafe-inline'" }