Skip to Content
0
May 26, 2020 at 02:04 PM

API Management - Remove "Server" in Http response header

1192 Views Last edit May 26, 2020 at 02:09 PM 2 rev

Hello everyone,

I need to remove the http header "Server" when sending back the response to my client application.

My Flow is: SAP Cloud Portal -> API Management -> SAP Gateway.

I added an Assign Message policy to my flow in ProxyEndpoint-PostFlow of Outgoing response.

First I tried to remove Server, but did not work, then I tried to update the content of this field to "N/A", but did not work either. In debug mode, I can see the header "Server" is filled with N/A, but it is still visible in the application.

Is there any restriction(SCP, APIM) related to this header which we cannot change/remove it? Or is there any other way to change/remove it?

Any input is really appreciated.

Many Thanks,Maicon Rosa.