F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

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