Application gateway - rewrite header rule won't allow quotes in header

Luke Uhren 201 Reputation points
2022-01-03T16:29:30.507+00:00

We are trying to set custom header value for Clear-Site-Data on a web application in application gateway rewrite rule and it won't allow quotes. Firefox developer documentation mentions clear-site-data should be in quotes, yet it won't show up if we add quotes to the rewrite rule in application gateway rule. So if we have quotes it shows as blank or not at all in Miscellaneous Headers tracking with a tool like fiddler. Reason we need quotes is it doesn't seem to work without.

Why does application gateway not allow quotes in the header rules? I attached a screenshot of what the rule is. The link to the dev documentation explaining it should have quotes is here as well https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data. Any help on this would be greatly appreciated.

161982-image.png

More information on explaining this is the following:

Example of tracking response headers in something such as fiddler, if I use cache without quotes it will show up like example below.

161945-image.png

If I try to put quotes in the actual rule on the application gateway, it will just not even show up under the response headers anymore as if its not even working or enabled. It's as you need to format it differently for allowing quotes in the header value but I can't find information on this.
161955-image.png

If anyone has ran across this before and knows how to have the value be in double quotes that would be great.

Thanks

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,213 questions
0 comments No comments
{count} votes

Accepted answer
  1. ChaitanyaNaykodi-MSFT 27,471 Reputation points Microsoft Employee Moderator
    2022-01-03T23:08:21.937+00:00

    Hello @Luke Uhren , Thank you for reaching out. This is a known product issue and the fix will be rolled out in upcoming release for Azure Application Gateway. The current work around is to not include quotes in the header value until the fix is rolled out. Hope this helps, please let me know if you have any additional questions. Thank you!

    ----------

    ​​Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.