Permit network access under the permission model.
Section: Security and Permissions
Allow outbound network access
bash
bash
node --permission --allow-net=api.example.com app.jsExplanation
Recent Node versions expose network permissions as part of the permission model.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Security and Permissions
Enable permission model and allow file reads
Run with restricted permissions and controlled file access.
Disallow eval and string code generation
Block code generation from strings.