From 6887c33b6672d90c47e6a87f0cc3c31e34badf76 Mon Sep 17 00:00:00 2001 From: Justsnoopy30 Date: Wed, 19 Apr 2023 21:05:07 -0500 Subject: [PATCH] Update tauri content security policy (#92) This fixes the launcher not loading on some system webview implementations --- theseus_gui/src-tauri/tauri.conf.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theseus_gui/src-tauri/tauri.conf.json b/theseus_gui/src-tauri/tauri.conf.json index d310c6a58..fe00a245f 100644 --- a/theseus_gui/src-tauri/tauri.conf.json +++ b/theseus_gui/src-tauri/tauri.conf.json @@ -60,7 +60,7 @@ } }, "security": { - "csp": "default-src 'self'; img-src 'self' asset: https://asset.localhost" + "csp": "default-src 'self'; connect-src https://modrinth.com https://*.modrinth.com; style-src https://rsms.me/inter/ 'unsafe-inline'; font-src https://rsms.me/inter/; img-src tauri: https: data: blob: 'unsafe-inline' asset: https://asset.localhost" }, "updater": { "active": false