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

[HTTP/permissions] Can't query 0.0.0.0 IPs even with properly set allow-list #2240

Open
MidKnightXI opened this issue Dec 27, 2024 · 1 comment

Comments

@MidKnightXI
Copy link

MidKnightXI commented Dec 27, 2024

Context

I'm currently working on a project that needs to access a backend locally or remotely.

Usually the server is listening on http://0.0.0.0:5000 locally. When debugging on the browser (latest Firefox) everything works fine. But when I went on Tauri to see how was the experience on the app itself I got the following error:

Not allowed to use restricted network host "0.0.0.0": http://0.0.0.0:5000/

It happens with and without the allowlist and plugin http installed.

default.json file:

{
  "$schema": "../gen/schemas/desktop-schema.json",
  "identifier": "default",
  "description": "Capability for the main window",
  "windows": [
    "main"
  ],
  "permissions": [
    {
      "identifier": "http:default",
      "allow": [{ "url": "http://*:*" }, { "url": "https://*:*" }]
    }
  ]
}

Medias

image

@MidKnightXI MidKnightXI changed the title [HTTP/permissions] Can't query 0.0.0.0 IPs even with properly setted allow-list [HTTP/permissions] Can't query 0.0.0.0 IPs even with properly set allow-list Dec 27, 2024
@MidKnightXI
Copy link
Author

MidKnightXI commented Dec 27, 2024

Also, if I switch to localhost instead 0.0.0.0, everything works properly, is it an expected behaviour ?

EDIT: I meant that 0.0.0.0 isn't being redirected to localhost as my browsers are doing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant