# DenoAppResource.WithDenoAllowAll

- Module: [Aspire.Hosting.JavaScript](/reference/api/go/aspire.hosting.javascript.md)
- Defined on: [DenoAppResource](/reference/api/go/aspire.hosting.javascript/denoappresource.md)
- Version: `17.0.0`
- Kind: `method`

Controls the blanket `-A`/`--allow-all` grant.

## Remarks

Without explicit permission configuration, local run mode emits `-A` for parity with Node and Bun,
while generated containers default direct `run`/`serve` entrypoints to
`--allow-net --allow-env`. Calling this method with `true` explicitly emits `-A`
in both modes.

## Definition

```go
type DenoAppResource interface {
    // ... omitted for brevity
    WithDenoAllowAll(options ...*WithDenoAllowAllOptions) DenoAppResource
}
```

## Signature

```go
WithDenoAllowAll(options ...*WithDenoAllowAllOptions) DenoAppResource
```

## Parameters

- `options` (`...*WithDenoAllowAllOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*WithDenoAllowAllOptions` argument.

- `Enabled` (`*bool`) -- Whether to emit `-A`/`--allow-all`. Pass `false` to grant only permissions configured with `WithDenoAllow`.

## Returns

[`DenoAppResource`](/reference/api/go/aspire.hosting.javascript/denoappresource.md) -- The resource builder.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [DenoAppResource](/reference/api/go/aspire.hosting.javascript/denoappresource.md) -- `handle`
