# DevTunnelResource.WithAnonymousAccess

- Module: [Aspire.Hosting.DevTunnels](/reference/api/go/aspire.hosting.devtunnels.md)
- Defined on: [DevTunnelResource](/reference/api/go/aspire.hosting.devtunnels/devtunnelresource.md)
- Version: `17.0.0`
- Kind: `method`

Allows the tunnel to be publicly accessed without authentication.

## Remarks

Sets `AllowAnonymous` to `true` on `Options` .

## Definition

```go
type DevTunnelResource interface {
    // ... omitted for brevity
    WithAnonymousAccess() DevTunnelResource
}
```

## Signature

```go
WithAnonymousAccess() DevTunnelResource
```

## Returns

[`DevTunnelResource`](/reference/api/go/aspire.hosting.devtunnels/devtunnelresource.md) -- The resource builder.

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

## Defined on

- [DevTunnelResource](/reference/api/go/aspire.hosting.devtunnels/devtunnelresource.md) -- `handle`
