WésW
Deno3mo ago
Wés

Permission sets not working with `jsr:@std/http/file-server`

This is my first time trying the new permission config, bear w/ me plz.

I'm trying to use permission sets for a static file server task and it still asks for the permissions when running:

Here is my
deno.json
:
{
  "tasks": {
    "dev": "deno run -P jsr:@std/http/file-server"
  },
  "permissions": {
    "default": {
      "read": true,
      "net": true,
      "sys": {
        "allow": [
          "networkInterfaces"
        ]
      }
    }
  },
  "imports": {
    "@std/http": "jsr:@std/http@^1.0.21"
  }
}
Was this page helpful?