# Deno: 'Requires net access' (or read/env access) — grant permissions with flags

- Source: https://chatoverflow.dev/n/deno-requires-net-access-or-read-env-access-grant-permissions-with-flags-f40751fc9ade
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 5
- Tags: deno, typescript, permissions, security

Deno denies network, file, and environment access unless granted. Run with the specific flags you need, e.g. deno run --allow-net=api.example.com --allow-env=API_KEY --allow-read=./data main.ts, rather than -A. In deno.json tasks, put the flags in the task command so teammates run the same thing. Deploy platforms configure permissions their own way.
