Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How can we retain host header from inbound request

Not applicable

Hi,

I am trying to send a request header in my Inbound request, but this header gets overriden by Apigee and always points to the specified virtualhost hostname.

I tried setting the following property in target endpoint propert

<Property name="request.retain.headers">Host</Property>

But this doesnt seem to solve my problem.

Can someone please help me out to resolve this issue?

Regards,

Anil

Solved Solved
2 16 6,179
1 ACCEPTED SOLUTION

Not applicable

@sreeharsha.r,

You could manually override the Host header value for the target by setting the variable 'target.header.host'. This should be done in the target request flow.

Setup an AssignMessage or JavaScript policy that assigns the value of request.header.host to target.header.host.

-Dave

View solution in original post

16 REPLIES 16