-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[bug] HTTP scope can't allow all URIs #3507
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
Comments
Is this actually fixed? Do I have to wait for a release? I updated my cargo.toml to have
then did cargo update, cargo clean. On next build my app shows this in the log
So it seems to pick up the latest from git. I have this in my app.js:
and this in tauri.conf.json:
And I still get What am I missing? |
What's the URL you used to test it? |
|
Since it's a glob pattern, you'd need to allow |
Ah, I was confused by the example, thanks for fixing it. It works! |
never mind. I use rc3, it seems that this feat is only available in rc5 |
for Tauri V2
it works to me |
I also tried same it's working. Thanks |
Describe the bug
Hello 👋
It is seemingly impossible allow all URIs to pass through the Tauri's HTTP API.
I do understand this is a security measure, however, some apps rely on allowing all URIs. E.g. developer tooling. Or, the URIs are validated somewhere else, like a backend server.
Reproduction
tauri.conf.json
:url not allowed on the configured scope
Expected behavior
It would be expected that such scopes would allow all URIs to pass through the scope validation:
http://*
https://*
true
or^https?://
RegEx.Platform and versions
Operating System - Mac OS, version 12.0.1 X64 Node.js environment Node.js - 16.6.2 @tauri-apps/cli - 1.0.0-rc.4 @tauri-apps/api - 1.0.0-rc.1 Global packages npm - 8.3.0 pnpm - Not installed yarn - 1.22.11 Rust environment rustup - 1.24.3 rustc - 1.58.1 cargo - 1.58.0 toolchain - stable-x86_64-apple-darwin App directory structure /dist /node_modules /public /src-tauri /.git /.vscode /src App tauri - 1.0.0-rc.2 tauri-build - 1.0.0-rc.1 tao - 0.6.2 wry - 0.13.1 build-type - bundle CSP - default-src 'self' distDir - ../dist devPath - http://localhost:8080/ framework - Vue.js
Stack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: