Forum Discussion
spars
Dec 07, 2021Altostratus
iRule to Remove Duplicate Header by Value
Via iRule, trying to remove duplicate Strict-Transport-Security headers (developers are unable to), the below code does not seem to work. when HTTP_REQUEST {
foreach a_header [HTTP::header "...
- Dec 08, 2021
You can use something like below
when HTTP_RESPONSE { HTTP::header remove "Strict-Transport-Security" HTTP::header insert Strict-Transport-Security "max-age=2592000" }
spalande
Dec 08, 2021Nacreous
You can use something like below
when HTTP_RESPONSE {
HTTP::header remove "Strict-Transport-Security"
HTTP::header insert Strict-Transport-Security "max-age=2592000"
}
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