Forum Discussion
ckteur
Apr 29, 2021Cirrus
Replace an header authorization request with policy or iRule doesn't work ...
Hi all, I need to replace an header in request : the original header is "X-epsilon-Authorization" and the new header is "Authorization". I don't know if the value of header is necessary but is...
- Apr 29, 2021
Try below. Modify the names of the header if needed. You can enable logging to see if it's replacing as expected.
when HTTP_REQUEST { if { [HTTP::header exists "X-epsilon-Authorization"] } { set value [HTTP::header value X-epsilon-Authorization] HTTP::header remove X-epsilon-Authorization HTTP::header insert Authorization $value } else { return } foreach aHeader [HTTP::header names] { # log local0. "$aHeader: [HTTP::header value $aHeader]" } }
spalande
Apr 30, 2021Nacreous
My bad. Please try above the edited one.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects