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

How to add host in custom header at GLB

Hi ,

I have a requirement to  add the actual host in custom header at GLB so that i can fetch the host in apigeex from that header.

Example -

URL - https://test1.com/v1/abc

When request reaches at GLB , I want to fetch test1.com from the url and add it in the custom header say -

custom-header:test1.com

so that ,i can fetch the value as test1.com from custom header in apigeex.

Can anyone help me the way out to achive the above use case.

1 1 697
1 REPLY 1