Skip to content

Commit 5716180

Browse files
authored
Merge pull request #78549 from abshamsft/patch-16
Updating limitation
2 parents 8c70356 + dd6616e commit 5716180

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/application-gateway/rewrite-http-headers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ You can evaluate an HTTP request or response header for the presence of a header
148148

149149
## Limitations
150150

151+
- If a response has more than one headers with the same name, then rewriting the value of one of those headers will result in dropping the other headers in the response. This can usually happen with Set-Cookie header since you can have more than one Set-Cookie header in a response. One such scenario is when you are using an app service with an application gateway and have configured cookie-based session affinity on the application gateway. In this case the response will contain 2 Set-Cookie headers: one used by the app service, i.e., `Set-Cookie: ARRAffinity=ba127f1caf6ac822b2347cc18bba0364d699ca1ad44d20e0ec01ea80cda2a735;Path=/;HttpOnly;Domain=sitename.azurewebsites.net` and another for application gateway affinity, i.e., `Set-Cookie: ApplicationGatewayAffinity=c1a2bd51lfd396387f96bl9cc3d2c516; Path=/`. Rewriting one of the Set-Cookie headers in this scenario can result in removing the other Set-Cookie header from the response.
152+
151153
- Rewriting the Connection, Upgrade, and Host headers isn't currently supported.
152154

153155
- Header names can contain any alphanumeric characters and specific symbols as defined in [RFC 7230](https://tools.ietf.org/html/rfc7230#page-27). We don't currently support the underscore (\_) special character in Header names.
154156

155-
- If a response has multiple headers with the same name, then rewriting the value of one of those headers will result in dropping the other headers in the response.
156-
157157
## Next steps
158158

159159
To learn how to rewrite HTTP headers, see:

0 commit comments

Comments
 (0)