⌨️sandbox.network.allowedDomains
Also known as allowedDomains
A list of web hosts that commands in the sandbox may reach with no prompt.
Think of it like
It is like a list of friends' homes a child may walk to on their own.
Example
Emma's npm installs kept asking to reach the registry. She adds *.npmjs.org, and installs run without a prompt.
Why it matters
The hosts a project needs every day should not need a yes every time.
Definition
Example code
json
{
"sandbox": {
"network": {
"allowedDomains": ["github.com", "*.npmjs.org"]
}
}
}Common mistake
Key takeaways
- 1Reach without asking. Listed hosts.
- 2Wildcards for subdomains. *.example.com.
- 3Port optional. :443.