Skip to content

Commit 508ba9d

Browse files
Merge pull request #280953 from duongau/afdheaders
Front Door - Rules engine action (add note about reserved headers)
2 parents dcdf964 + a8a8886 commit 508ba9d

File tree

1 file changed

+67
-1
lines changed

1 file changed

+67
-1
lines changed

articles/frontdoor/front-door-rules-engine-actions.md

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: frontdoor
66
author: duongau
77
ms.service: frontdoor
88
ms.topic: conceptual
9-
ms.date: 05/07/2024
9+
ms.date: 07/16/2024
1010
ms.author: duau
1111
zone_pivot_groups: front-door-tiers
1212
---
@@ -237,6 +237,39 @@ In this example, we append the value `AdditionalValue` to the `MyRequestHeader`
237237

238238
---
239239

240+
> [!NOTE]
241+
> Certain Azure Front Door reserved headers can't be modified using rules engine actions, including the actions to modify request headers and response headers. The following list of reserved headers can't be modified, along with any headers prefixed with `x-ec` and `x-fd`.
242+
>
243+
> * `Accept-Ranges`
244+
> * `Host`
245+
> * `Connection`
246+
> * `Content-Length`
247+
> * `Transfer-Encoding`
248+
> * `TE`
249+
> * `Last-Modified`
250+
> * `Keep-Alive`
251+
> * `Expect`
252+
> * `Upgrade`
253+
> * `If-Modified-Since`
254+
> * `If-Unmodified-Since`
255+
> * `If-None-Match`
256+
> * `If-Match`
257+
> * `Range`
258+
> * `If-Range`
259+
> * `X-Ms-Via`
260+
> * `X-Ms-Force-Refresh`
261+
> * `X-MSEdge-Ref`
262+
> * `Warning`
263+
> * `Forwarded`
264+
> * `Via`
265+
> * `X-Forwarded-For`
266+
> * `X-Forwarded-Proto`
267+
> * `X-Forwarded-Host`
268+
> * `X-Azure-RequestChain`
269+
> * `X-Azure-FDID`
270+
> * `X-Azure-RequestChainv2`
271+
> * `X-Azure-Ref`
272+
240273
## <a name="ModifyResponseHeader"></a> Modify response header
241274

242275
Use the **modify response header** action to modify headers that are present in responses before they're returned to your clients.
@@ -285,6 +318,39 @@ In this example, we delete the header with the name `X-Powered-By` from the resp
285318

286319
---
287320

321+
> [!NOTE]
322+
> Certain Azure Front Door reserved headers can't be modified using rules engine actions, including the actions to modify request headers and response headers. The following list of reserved headers can't be modified, along with any headers prefixed with `x-ec` and `x-fd`.
323+
>
324+
> * `Accept-Ranges`
325+
> * `Host`
326+
> * `Connection`
327+
> * `Content-Length`
328+
> * `Transfer-Encoding`
329+
> * `TE`
330+
> * `Last-Modified`
331+
> * `Keep-Alive`
332+
> * `Expect`
333+
> * `Upgrade`
334+
> * `If-Modified-Since`
335+
> * `If-Unmodified-Since`
336+
> * `If-None-Match`
337+
> * `If-Match`
338+
> * `Range`
339+
> * `If-Range`
340+
> * `X-Ms-Via`
341+
> * `X-Ms-Force-Refresh`
342+
> * `X-MSEdge-Ref`
343+
> * `Warning`
344+
> * `Forwarded`
345+
> * `Via`
346+
> * `X-Forwarded-For`
347+
> * `X-Forwarded-Proto`
348+
> * `X-Forwarded-Host`
349+
> * `X-Azure-RequestChain`
350+
> * `X-Azure-FDID`
351+
> * `X-Azure-RequestChainv2`
352+
> * `X-Azure-Ref`
353+
288354
## <a name="UrlRedirect"></a> URL redirect
289355

290356
Use the **URL redirect** action to redirect clients to a new URL. Clients are sent a redirection response from Front Door. Azure Front Door supports dynamic capture of URL path with `{url_path:seg#}` server variable, and converts URL path to lowercase or uppercase with `{url_path.tolower}` or `{url_path.toupper}`. For more information, see [Server variables](rule-set-server-variables.md).

0 commit comments

Comments
 (0)