Hello @Stanislav Harvan ,
I checked with the Azure Application Gateway Product Group team and below is their response on this issue:
Rewrites do not work on responses generated directly from the Application Gateway.
This is currently not supported and is part of the backlog. There isn’t an ETA on this but we will be working on this limitation soon.
I am working with the team to add this to the limitation section on our docs:
https://learn.microsoft.com/en-us/azure/application-gateway/rewrite-http-headers-url#limitations
Kindly let us know if the above helps or you need further assistance on this issue.
----------------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.