Table of Contents

Class ForwardHeadersOptions

Namespace
Sitecore.AspNetCore.SDK.RenderingEngine.Configuration
Assembly
Sitecore.AspNetCore.SDK.RenderingEngine.dll

Options to configure headers forwarding.

public class ForwardHeadersOptions
Inheritance
ForwardHeadersOptions
Inherited Members

Properties

HeadersWhitelist

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

public HashSet<string> HeadersWhitelist { get; }

Property Value

HashSet<string>

RequestHeadersFilters

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

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

Property Value

IList<Action<HttpRequest, IDictionary<string, string[]>>>

ResponseHeadersFilters

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

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

Property Value

IList<Action<ILookup<string, string>, IDictionary<string, string[]>>>

XForwardedProtoHeader

Gets or sets the XForwardedProto header key to push the request schema under for the request when forwarding.

public string XForwardedProtoHeader { get; set; }

Property Value

string