For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

CraigBo's avatar
CraigBo
Icon for Nimbostratus rankNimbostratus
Apr 03, 2020

How to use Rewrite and ProxyPass without affecting the Cookies

We are using proxypass with a rewrite rule that modifies the value of the location in the header.

 

if { [HTTP::is_redirect] } {

     HTTP::header replace Location [string map {inside.domain.com outside.domain.com} [HTTP::header Location]]

 }

 

Unfortunately, this is causing responses with multiple Set-cookie headers to lose all but the 1 of them.

 

Is there a way to modify the location header without truncating the multiple headers with the same name?

1 Reply