Make HTTP requests with the Rust backend.
This API has a scope configuration that forces you to restrict the URLs that can be accessed using glob patterns.
For instance, this scope configuration only allows making HTTP requests to all subdomains for tauri.app except for https://private.tauri.app:
tauri.app
https://private.tauri.app
{ "permissions": [ { "identifier": "http:default", "allow": [{ "url": "https://*.tauri.app" }], "deny": [{ "url": "https://private.tauri.app" }] } ]} Copy
{ "permissions": [ { "identifier": "http:default", "allow": [{ "url": "https://*.tauri.app" }], "deny": [{ "url": "https://private.tauri.app" }] } ]}
Trying to execute any API with a URL not configured on the scope results in a promise rejection due to denied access.
Make HTTP requests with the Rust backend.
Security
This API has a scope configuration that forces you to restrict the URLs that can be accessed using glob patterns.
For instance, this scope configuration only allows making HTTP requests to all subdomains for
tauri.app
except forhttps://private.tauri.app
:Trying to execute any API with a URL not configured on the scope results in a promise rejection due to denied access.