Describe the bug
I want to use the Bridge-Pattern with a few more options enabled.
I enabled all options i wanted by reading the documentation:
"allowlist": {
"all": false,
"event": true,
"open": true,
"openDialog": true
}
When i tried to use the http module from tauri this error was printed:
[ERROR] "httpRequest' not on the allowlist (https://tauri.studio/docs/api/config#tauri.allowlist)"
This option isn't in the docs but tried anyway and now cargo printed the following error:
error: failed to select a version for `tauri`.
... required by package `<application_name> v0.1.0 (<application_path>/src-tauri)`
versions that meet the requirements `=0.9.2` are: 0.9.2
the package `<application_name>` depends on `tauri`, with features: `http-request` but `tauri` does not have these features.
failed to select a version for `tauri` which could resolve this conflict
To Reproduce
Steps to reproduce the behavior:
- Go to
src-tauri/tauri.conf.json
- Add
"httpRequest": true, to tauri:allowlist
- Use for example:
import http from 'tauri/api/http'
http.get('https://google.com')
- Start tauri application
- Look at the output of
tauri dev
Expected behavior
When I add the httpRequest option to the allow list I want the application to compile and the ability to use the http module from JavaScript.
Platform and Versions:
OS: Linux(5.8.10-arch1-1) - linux/x64
Node: 14.11.0
NPM: 6.14.7
Yarn: 1.22.5
Rustc: 1.46.0
Describe the bug
I want to use the Bridge-Pattern with a few more options enabled.
I enabled all options i wanted by reading the documentation:
When i tried to use the http module from tauri this error was printed:
This option isn't in the docs but tried anyway and now cargo printed the following error:
To Reproduce
Steps to reproduce the behavior:
src-tauri/tauri.conf.json"httpRequest": true,totauri:allowlisttauri devExpected behavior
When I add the
httpRequestoption to the allow list I want the application to compile and the ability to use thehttpmodule from JavaScript.Platform and Versions:
OS: Linux(5.8.10-arch1-1) - linux/x64
Node: 14.11.0
NPM: 6.14.7
Yarn: 1.22.5
Rustc: 1.46.0