Forum Discussion
JP_124708
Oct 11, 2013Nimbostratus
How to redirect or change content in an iFrame
I'm trying to figure out a good way to be bale to change the content displayed in an iFrame. We have written an iRule that will do an HTTP::redirect, but it displays the redirect in the iFrame.
...
AngryCat_52750
Dec 03, 2013Nimbostratus
i tried the iRule you suggested above like this -
when HTTP_REQUEST {
STREAM::disable
HTTP::header remove "Accept-Encoding"
if {([string tolower [HTTP::uri]] starts_with "/app/index.aspx") and not ([string tolower [HTTP::uri]] contains "authid")}{
HTTP::redirect "https://www.primary.com"
}
if {[string tolower [HTTP::uri]] starts_with "/app/engine/login.aspx"}{
set add_iframe_breaker 1
HTTP::redirect "https://www.primary.com"
}
}
when HTTP_RESPONSE {
if { ( [info exists add_iframe_breaker] ) and ( [HTTP::header value Content-Type] contains "text" ) } {
unset add_iframe_breaker
STREAM::expression {@@ @}
STREAM::enable
}
}
without any success..
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