# WithDenoAllow

- Module: [Aspire.Hosting.JavaScript](/reference/api/go/aspire.hosting.javascript.md)
- Version: `17.0.0`
- Kind: `method`
- Defined on: [`DenoAppResource`](/reference/api/go/aspire.hosting.javascript/denoappresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Grants a Deno permission, optionally scoped to the supplied values.

## Definition

```go
func (DenoAppResource) WithDenoAllow(
    kind DenoPermissionKind,
    values []string,
) DenoAppResource
```

## Parameters

- `kind` ([`DenoPermissionKind`](/reference/api/go/aspire.hosting.javascript/denopermissionkind.md)) -- The permission to grant.
- `values` (`[]string`) -- Optional values that scope the permission. When empty, all access of the selected kind is allowed.

## Returns

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

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

## Applies to

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