Does anyone know if there is a way to have the Network Gateway modify the referrer or host header that is sent to an internal web application?
I have external.example.com (“EXTERNAL”) that resolves to the Network Gateway. Upon successful authentication, the network gateway redirects to the web application at internal.hq.example.com (“INTERNAL”). However the host header set by the browser and sent to the internal server is set to “external.example.com”. This cause the internal web application to throw an error due to the mismatch.
I’ve solved a similar issue in the past with NGINX’s proxy_cookie_domain directive but I do not see any settings in the Network Gateway that would allow me to implement a similar config.