Forum Discussion
pedinopa_170325
Nimbostratus
Aug 25, 2017x-frame-options
I have had to do multiple irules to set different x-frame-options. So I have multiple irules setting x-frame-options, I want to write 1 irule that will pick the appropriate x-frame-option based on t...
pedinopa_170325
Nimbostratus
Aug 25, 2017I found the solution with Data Groups.
when HTTP_REQUEST { set host [string tolower [HTTP::host] } when HTTP_RESPONSE { if {[class match $host contains URLdatagroup]} { HTTP::header replace X-Frame-Options "ALLOW-FROM ; } else { HTTP::header replace X-Frame-Options "ALLOW-FROM ; }
}
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