Search code examples
deno

Deno permissions (--allow-net)


How to give global permission to all websites (for debugging stuff) in my deno project like..

deno run --allow-net=* deno.ts

or something like that


Solution

  • Just use --allow-net without anything else.

    Unless you specify something, you will give permission to all network calls.

    # All requests allowed
    deno run --allow-net deno.ts
    
    # only calls to stackoverflow.com
    deno run --allow-net=stackoverflow.com deno.ts
    

    The same goes for all the other permissions.