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
Copy file name to clipboardExpand all lines: core/tauri-config-schema/schema.json
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -167,6 +167,7 @@
167
167
"security": {
168
168
"dangerousDisableAssetCspModification": false,
169
169
"dangerousRemoteDomainIpcAccess": [],
170
+
"dangerousUseHttpScheme": false,
170
171
"freezePrototype": false
171
172
},
172
173
"updater": {
@@ -423,6 +424,7 @@
423
424
"default": {
424
425
"dangerousDisableAssetCspModification": false,
425
426
"dangerousRemoteDomainIpcAccess": [],
427
+
"dangerousUseHttpScheme": false,
426
428
"freezePrototype": false
427
429
},
428
430
"allOf": [
@@ -2740,6 +2742,11 @@
2740
2742
"items": {
2741
2743
"$ref": "#/definitions/RemoteDomainAccessScope"
2742
2744
}
2745
+
},
2746
+
"dangerousUseHttpScheme": {
2747
+
"description": "Sets whether the custom protocols should use `http://<scheme>.localhost` instead of the default `https://<scheme>.localhost` on Windows.\n\n**WARNING:** Using a `http` scheme will allow mixed content when trying to fetch `http` endpoints and is therefore less secure but will match the behavior of the `<scheme>://localhost` protocols used on macOS and Linux.",
/// Sets whether the custom protocols should use `http://<scheme>.localhost` instead of the default `https://<scheme>.localhost` on Windows.
1330
+
///
1331
+
/// **WARNING:** Using a `http` scheme will allow mixed content when trying to fetch `http` endpoints and is therefore less secure but will match the behavior of the `<scheme>://localhost` protocols used on macOS and Linux.
1332
+
#[serde(default, alias = "dangerous-use-http-scheme")]
1333
+
pubdangerous_use_http_scheme:bool,
1329
1334
}
1330
1335
1331
1336
/// Defines an allowlist type.
@@ -3736,6 +3741,7 @@ mod build {
3736
3741
let dev_csp = opt_lit(self.dev_csp.as_ref());
3737
3742
let freeze_prototype = self.freeze_prototype;
3738
3743
let dangerous_disable_asset_csp_modification = &self.dangerous_disable_asset_csp_modification;
3744
+
let dangerous_use_http_scheme = &self.dangerous_use_http_scheme;
0 commit comments