Azure Front door - Modify Custom Header Name Not working

Komal Singh 20 Reputation points
2023-02-21T11:15:55.41+00:00

Hi
I would like to modify an existing custom response header name i tried as per documentation but its not working for me.
For every request, i want to set an action on response - rename x-header-1 name to x-header-z with its existing value as its coming from response.
I tried in rule set -
THEN Action | Response header | Operator = Append | | Header name = x-header-z | Header value = %{resp_X_Header_1}
and i tried all the possible values but its showing as it is values like - %{resp_X_Header_1}

Reference: https://learn.microsoft.com/en-us/azure/cdn/cdn-http-variables?toc=%2Fazure%2Ffrontdoor%2FTOC.json

Kindly look on this

Thanks
Komal Singh

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
850 questions
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 49,536 Reputation points Microsoft Employee Moderator
    2023-02-22T09:28:10.7266667+00:00

    @Komal Singh

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    From our discussion, you would like to add a custom Response Header in AFD dynamically based on the value of another custom Response Header from the Origin.

    Unfortunately, this feature is only available in Azure Verizon Premium CDN as of now.

    The document you have shared also references the same. I did a lab and I was able to get this working.

    Currently, AFD server variables don’t support header.

    Refer to this for supported server variables in AFD

    You can consider using CDN in case you would want to dynamically update a custom header.

    Additionally, you can raise this in Azure Feedback Hub

    This site is closely monitored by our internal teams that are responsible for building Azure and they will consider this feature in the future releases.

    Please let me know if you require additional information, I shall try to address them to the best of my knowledge.

    Thanks,

    Kapil


    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    1 person found this answer helpful.
    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.