#url not allowed on the configured scope

2 messages · Page 1 of 1 (latest)

minor sequoia
#

I have just updated from v1 to v2 and my http requests are no longer working. I am using a wildcard http://* in the allow list but all the urls are not allowed. I have tried http://** and http://127.0.0.1

{
    "$schema": "../gen/schemas/desktop-schema.json",
    "identifier": "default",
    "description": "Capability for the main window",
    "windows": ["main"],
    "permissions": [
        "core:default",
        "fs:allow-read-file",
        "fs:allow-write-file",
        "fs:allow-read-dir",
        "fs:allow-copy-file",
        "fs:allow-mkdir",
        "fs:allow-remove",
        "fs:allow-rename",
        "fs:allow-exists",
        "core:window:allow-set-resizable",
        "core:window:allow-maximize",
        "core:window:allow-unmaximize",
        "core:window:allow-set-size",
        "core:window:allow-set-min-size",
        "dialog:allow-message",
        "dialog:allow-confirm",
        "store:default",
        "dialog:default",
        "fs:default",
        {
            "identifier": "http:default",
            "allow": [
                {
                    "url": "http://*"
                },
                {
                    "url": "https://*"
                }
            ],
            "deny": []
        }
    ]
}
Error fetching data: url not allowed on the configured scope: http://127.0.0.1:8000/api/ping
minor sequoia
#

solved. wildcards are different in v1 to v2

{
  "url": "http://*"
},
{
  "url": "https://*"
},
{
  "url": "http://*:*"
},
{
  "url": "https://*:*"
}