allow production url in csp

This commit is contained in:
Nikita Galaiko 2023-03-01 12:04:29 +01:00
parent eaeb9f4bce
commit 42d658abc5
No known key found for this signature in database
GPG Key ID: EBAB54E845BA519D
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ tauri-build = { version = "1.2", features = [] }
[dependencies]
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.2", features = ["dialog-open", "path-all", "protocol-asset", "shell-open", "system-tray", "window-start-dragging"] }
tauri = { version = "1.2", features = ["devtools", "dialog-open", "path-all", "protocol-asset", "shell-open", "system-tray", "window-start-dragging"] }
tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev" }
tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev", features = ["colored"] }
log = "0.4.17"

View File

@ -378,7 +378,7 @@ fn main() {
})
.setup(move |app| {
let window = create_window(&app.handle()).expect("Failed to create window");
#[cfg(debug_assertions)]
// #[cfg(debug_assertions)]
window.open_devtools();
let resolver = app.path_resolver();

View File

@ -53,7 +53,7 @@
"csp": {
"default-src": "'self'",
"img-src": "'self' asset: https://asset.localhost",
"connect-src": "'self' https://eu.posthog.com",
"connect-src": "'self' https://eu.posthog.com https://app.gitbutler.com",
"script-src": "'self' https://eu.posthog.com",
"style-src": "'self' 'unsafe-inline'"
}