Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Tauri v2 http client permission problem #9164

Closed
Itzenev opened this issue Mar 12, 2024 · 1 comment
Closed

[bug] Tauri v2 http client permission problem #9164

Itzenev opened this issue Mar 12, 2024 · 1 comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@Itzenev
Copy link

Itzenev commented Mar 12, 2024

Describe the bug

I have this in the capabilities:
{ "identifier": "http:default", "allow": [ { "url": "http://localhost:8000/*" } ] }

But I experience this issue when using the http client. The error is from the web console:

Uncaught (in promise) "url not allowed on the configured scope: http://localhost:8000/pull"

Reproduction

No response

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.22631 X64
    ✔ WebView2: 122.0.2365.80
    ✔ MSVC:
        - Visual Studio Build Tools 2019
        - Visual Studio Community 2022
    ✔ rustc: 1.75.0 (82e1608df 2023-12-21)
    ✔ cargo: 1.75.0 (1d8b05cdd 2023-11-20)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 21.6.0
    - yarn: 1.22.21
    - npm: 10.2.4

[-] Packages
    - tauri [RUST]: 2.0.0-beta.11
    - tauri-build [RUST]: 2.0.0-beta.9
    - wry [RUST]: 0.37.0
    - tao [RUST]: 0.26.1
    - @tauri-apps/api [NPM]: 2.0.0-beta.0
    - @tauri-apps/cli [NPM]: 2.0.0-beta.1

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../build
    - devUrl: http://localhost:5173/
    - framework: Svelte
    - bundler: Vite
Done in 9.07s.

Stack trace

No response

Additional context

No response

@Itzenev Itzenev added status: needs triage This issue needs to triage, applied to new issues type: bug labels Mar 12, 2024
@amrbashir
Copy link
Member

this should be fixed by tauri-apps/plugins-workspace#1059 and will be available in the next release of the plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants