mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-25 02:26:14 +03:00
allow production url in csp
This commit is contained in:
parent
eaeb9f4bce
commit
42d658abc5
@ -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"
|
||||
|
@ -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();
|
||||
|
@ -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'"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user