What is the best way to set a common value in the response headers ?

We would like to set the same value to some of the response headers of multiple target endpoints. Can you please tell me how to implement this ?

0 1 209
1 REPLY 1

I think we can set the same values to the relevant response headers in multiple target endpoints using the following ways:

1. Have an AssignMessage or JavaScript Policy to add the relevant response headers with appropriate values. We can then use the particular policy in the response flow of each of the target endpoints.
OR
2. Have an AssignMessage or JavaScript Policy (that adds the relevant response headers with appropriate values) in a Shared Flow and use the Shared Flow in the response flow of each of the target endpoints.
Shared Flow will be useful if we want to use this in multiple API Proxies.

If anyone else have are aware of any other ways to achieve this, please let me know.