Forum Discussion
Nfordhk_66801
Apr 02, 2015Nimbostratus
Apply APM to an iFrame - The content cannot be display in Frame
Hi,
We have an application and when you click a button, it makes a call to another virtual server and opens the windows in a iFrame.
When we apply our APM policy, it runs through specific c...
Seth_Cooper
Jun 10, 2015Employee
Hi Alex,
Here is an iRule workaround to use this for several sites.
when CLIENT_ACCEPTED {
ACCESS::restrict_irule_events disable
}
when HTTP_REQUEST {
if { [ACCESS::session sid] == "" || ![ACCESS::session exists -state_allow] } {
session does not exist in allow state, continue, user is logging in now
} else {
session already exists and is allowed, don't do anything, this will be the 99.9% case.
return
}
if { [HTTP::uri] contains "renderer" } {
return
}
if { [info exists frame_referer] } {
return
}
set frame_referer [HTTP::header "Referer"]
}
when HTTP_RESPONSE_RELEASE {
Update below to match your desired TLD
if { [info exists frame_referer] && $frame_referer matches_regex {UPDATE_THIS} } {
HTTP::header replace "X-Frame-Options" "ALLOW-FROM $frame_referer"
}
}
Hope this helps!
You need to have the db variable set to "allow_from"
Seth
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