Skip to content

Commit 1d09547

Browse files
fix(desktop): correct http capability url patterns for non-standard ports
http://** uses ** in hostname which is not valid URL Pattern spec. Hostname wildcard is * (not **); non-default ports require the *:* host:port form. Add all four variants to cover http/https on both default and non-default ports.
1 parent 92c4dfd commit 1d09547

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/desktop/src-tauri/capabilities/default.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
{
99
"identifier": "http:default",
1010
"allow": [
11-
{ "url": "http://**" },
12-
{ "url": "https://**" }
11+
{ "url": "http://*" },
12+
{ "url": "http://*:*" },
13+
{ "url": "https://*" },
14+
{ "url": "https://*:*" }
1315
]
1416
},
1517
"shell:allow-open"

0 commit comments

Comments
 (0)