---
title: "Class ForwardHeadersOptions"
slug: "sitecore.aspnet.renderingengine.configuration.forwardheadersoptions"
abstract: ""
---
# Class ForwardHeadersOptions

Options to configure headers forwarding.

## Inheritance

System.Object

ForwardHeadersOptions

### **Namespace**: Sitecore.AspNet.RenderingEngine.Configuration

#### **Assembly**: Sitecore.AspNet.RenderingEngine.dll

##### Syntax

```csharp
public class ForwardHeadersOptions : Object

```

### Constructors

#### ForwardHeadersOptions()

##### Declaration

```csharp
public ForwardHeadersOptions()

```

### Properties

#### HeadersWhitelist

Gets whitelist of headers allowed to be transferred to Layout Service request.

##### Declaration

```csharp
public HashSet<string> HeadersWhitelist { get; }

```

##### Property Value

| Type | Description |
| --- | --- |
| System.Collections.Generic.HashSet<br><br><<br><br>System.String<br><br>> |  |

#### RequestHeadersFilters

Gets filters, which will be applied sequentially during copying of headers from request to Layout service request.

##### Declaration

```csharp
public IList<Action<HttpRequest, IDictionary<string, string[]>>> RequestHeadersFilters { get; }

```

##### Property Value

| Type | Description |
| --- | --- |
| System.Collections.Generic.IList<br><br><<br><br>System.Action<br><br><<br><br>Microsoft.AspNetCore.Http.HttpRequest<br><br>,<br><br>System.Collections.Generic.IDictionary<br><br><<br><br>System.String<br><br>,<br><br>System.String<br><br>[]>>> |  |

#### ResponseHeadersFilters

Gets filters, which will be applied sequentially during copying of headers from Layout service response to response sent by rendering host.

##### Declaration

```csharp
public IList<Action<ILookup<string, string>, IDictionary<string, string[]>>> ResponseHeadersFilters { get; }

```

##### Property Value

| Type | Description |
| --- | --- |
| System.Collections.Generic.IList<br><br><<br><br>System.Action<br><br><<br><br>System.Linq.ILookup<br><br><<br><br>System.String<br><br>,<br><br>System.String<br><br>>,<br><br>System.Collections.Generic.IDictionary<br><br><<br><br>System.String<br><br>,<br><br>System.String<br><br>[]>>> |  |
