You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add `app > windows > useHttpsScheme` config option to choose whether the custom protocols should use `https://<scheme>.localhost` instead of the default `http://<scheme>.localhost` on Windows and Android
Add `WebviewWindowBuilder/WebviewBuilder::use_https_scheme` to choose whether the custom protocols should use `https://<scheme>.localhost` instead of the default `http://<scheme>.localhost` on Windows and Android
Copy file name to clipboardExpand all lines: crates/tauri-cli/config.schema.json
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -486,6 +486,11 @@
486
486
"description": "Whether browser extensions can be installed for the webview process\n\n ## Platform-specific:\n\n - **Windows**: Enables the WebView2 environment's [`AreBrowserExtensionsEnabled`](https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2environmentoptions?view=webview2-winrt-1.0.2739.15#arebrowserextensionsenabled)\n - **MacOS / Linux / iOS / Android** - Unsupported.",
487
487
"default": false,
488
488
"type": "boolean"
489
+
},
490
+
"useHttpsScheme": {
491
+
"description": "Sets whether the custom protocols should use `https://<scheme>.localhost` instead of the default `http://<scheme>.localhost` on Windows and Android. Defaults to `false`.\n\n ## Note\n\n Using a `https` scheme will NOT allow mixed content when trying to fetch `http` endpoints and therefore will not match the behavior of the `<scheme>://localhost` protocols used on macOS and Linux.\n\n ## Warning\n\n Changing this value between releases will change the IndexedDB, cookies and localstorage location and your app will not be able to access the old data.",
/// Sets whether the custom protocols should use `https://<scheme>.localhost` instead of the default `http://<scheme>.localhost` on Windows and Android. Defaults to `false`.
396
+
///
397
+
/// ## Note
398
+
///
399
+
/// Using a `https` scheme will NOT allow mixed content when trying to fetch `http` endpoints and therefore will not match the behavior of the `<scheme>://localhost` protocols used on macOS and Linux.
400
+
///
401
+
/// ## Warning
402
+
///
403
+
/// Changing this value between releases will change the IndexedDB, cookies and localstorage location and your app will not be able to access the old data.
Copy file name to clipboardExpand all lines: crates/tauri-schema-generator/schemas/config.schema.json
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -486,6 +486,11 @@
486
486
"description": "Whether browser extensions can be installed for the webview process\n\n ## Platform-specific:\n\n - **Windows**: Enables the WebView2 environment's [`AreBrowserExtensionsEnabled`](https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2environmentoptions?view=webview2-winrt-1.0.2739.15#arebrowserextensionsenabled)\n - **MacOS / Linux / iOS / Android** - Unsupported.",
487
487
"default": false,
488
488
"type": "boolean"
489
+
},
490
+
"useHttpsScheme": {
491
+
"description": "Sets whether the custom protocols should use `https://<scheme>.localhost` instead of the default `http://<scheme>.localhost` on Windows and Android. Defaults to `false`.\n\n ## Note\n\n Using a `https` scheme will NOT allow mixed content when trying to fetch `http` endpoints and therefore will not match the behavior of the `<scheme>://localhost` protocols used on macOS and Linux.\n\n ## Warning\n\n Changing this value between releases will change the IndexedDB, cookies and localstorage location and your app will not be able to access the old data.",
/// Sets whether the custom protocols should use `https://<scheme>.localhost` instead of the default `http://<scheme>.localhost` on Windows and Android. Defaults to `false`.
1524
+
///
1525
+
/// ## Note
1526
+
///
1527
+
/// Using a `https` scheme will NOT allow mixed content when trying to fetch `http` endpoints and therefore will not match the behavior of the `<scheme>://localhost` protocols used on macOS and Linux.
1528
+
///
1529
+
/// ## Warning
1530
+
///
1531
+
/// Changing this value between releases will change the IndexedDB, cookies and localstorage location and your app will not be able to access the old data.
1532
+
#[serde(default, alias = "use-https-scheme")]
1533
+
pubuse_https_scheme:bool,
1522
1534
}
1523
1535
1524
1536
implDefaultforWindowConfig{
@@ -1567,6 +1579,7 @@ impl Default for WindowConfig {
1567
1579
proxy_url:None,
1568
1580
zoom_hotkeys_enabled:false,
1569
1581
browser_extensions_enabled:false,
1582
+
use_https_scheme:false,
1570
1583
}
1571
1584
}
1572
1585
}
@@ -2538,6 +2551,7 @@ mod build {
2538
2551
let parent = opt_str_lit(self.parent.as_ref());
2539
2552
let zoom_hotkeys_enabled = self.zoom_hotkeys_enabled;
2540
2553
let browser_extensions_enabled = self.browser_extensions_enabled;
0 commit comments