Forum Discussion
Applying APM on an iframe
- Dec 13, 2022
So we did some more testing, and this is not going to work.
We've worked with support and experimented with iRules to insert additional headers and cookies into the response, but the behaviour of CORS is that these are always going to be removed. And because APM relies heavily on cookies to function, it does mean that accessing APM-protected content from an iFrame will fail to work.
Hi,
I believe I came across a similar case, you may want to check this link,
https://community.f5.com/t5/technical-forum/apply-apm-to-an-iframe-the-content-cannot-be-display-in-frame/td-p/133029
The comment with the resolution, stated the below,
i found the way to prevent the dialog breaks out of the frame :
- go to the Access Policy -> Customization -> Advanced
- go to Access Profiles / / Access Policy / Logon Pages / Logon Page / logon.inc
- Search for if(self != top) { top.location = self.location; } and comment it out so it looks like this: //if(self != top) { top.location = self.location; }
- Save changes; Apply policy changes
Thanks for the very fast response. Will try this out and let you know.
Recent Discussions
Related Content
* 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