Forum Discussion
Virtualrana_132
Nimbostratus
Nov 07, 2014HSTS - Header not inserted with iRule
Hi,
Following is my iRule which is attached to $mydomain$ (http) VirtualServer in F5 for HSTS, but it is not inserting the "Strict-Transport-Security" header in the http response. When I run "cu...
Yann_Desmarest
Cirrus
Nov 10, 2014Hello,
As your http VS directly answer with a redirect, your HTTP_RESPONSE event is never triggered.
You should build your own irule in an HTTP_REQUEST event and use the following command instead :
HTTP::respond 302 noserver Location "https://www.domain.org" Strict-Transport-Security "max-age=31536000"
BR
Yann
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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