# LogtoResource.WithTrustProxyHeader

- Module: [CommunityToolkit.Aspire.Hosting.Logto](/reference/api/go/communitytoolkit.aspire.hosting.logto.md)
- Defined on: [LogtoResource](/reference/api/go/communitytoolkit.aspire.hosting.logto/logtoresource.md)
- Version: `13.6.1`
- Kind: `method`

Configures the Logto resource to enable or disable the trust proxy header behavior.

## Definition

```go
type LogtoResource interface {
    // ... omitted for brevity
    WithTrustProxyHeader(trustProxyHeader bool) LogtoResource
}
```

## Signature

```go
WithTrustProxyHeader(trustProxyHeader bool) LogtoResource
```

## Parameters

- `trustProxyHeader` (`bool`) -- A value indicating whether to trust the proxy header.

## Returns

[`LogtoResource`](/reference/api/go/communitytoolkit.aspire.hosting.logto/logtoresource.md) -- The resource builder for the configured Logto resource.

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

## Defined on

- [LogtoResource](/reference/api/go/communitytoolkit.aspire.hosting.logto/logtoresource.md) -- `handle`
