ottleydamian
Aug 17, 2020Cirrus
Replace X-Frame-Options value
I need help with my syntax because it is not identifying and changing the text/value as expected. The response header in question is:
X-FRAME-OPTIONS: ALLOW-FROM https://my.identitymanager.com:8443
My iRule to replace the text/value is:
if { [HTTP::header value X-FRAME-OPTIONS] contains "identitymanager" }{
HTTP::header replace X-FRAME-OPTIONS [string map -nocase [list my.identitymanager.com biz.identitymanager.com] [HTTP::header value X-FRAME-OPTIONS]] }
I also tried:
[HTTP::header value X-FRAME-OPTIONS: ALLOW-FROM]
But that is an illegal argument