Soldato
I need to remove/reset cookies from a RestTemplate (header) before I make another call.
System: Spring Boot and using RestTemplate, and building it with RestTemplateBuilder. This is a backend call only in this particular instance.
Issue: A call is being made and a cookie is being set by the called system to maintain 'stickyness' to a particular RHOS (OpenShift) Node. I need to remove this cookie before making a second call.
Yes, yes, we know how to fix it in helm charts by removing the route notation, but right now due to a system limitation, we need to find a work-around.
How can I remove the cookie without having to create another instance of RestTemplate. (for real 'fun' reasons I might need to make this call ~10 times to get all the information I need and need to hit different hosts). Possibly sending in a new HTTPEntity with new headers?
Alternatively... block cookies being returned to me.
System: Spring Boot and using RestTemplate, and building it with RestTemplateBuilder. This is a backend call only in this particular instance.
Issue: A call is being made and a cookie is being set by the called system to maintain 'stickyness' to a particular RHOS (OpenShift) Node. I need to remove this cookie before making a second call.
Yes, yes, we know how to fix it in helm charts by removing the route notation, but right now due to a system limitation, we need to find a work-around.
How can I remove the cookie without having to create another instance of RestTemplate. (for real 'fun' reasons I might need to make this call ~10 times to get all the information I need and need to hit different hosts). Possibly sending in a new HTTPEntity with new headers?
Alternatively... block cookies being returned to me.