Unable to load content in a frame. Frame content will load at the top level.

Use Case:
An ADF application developed with Jdeveloper 11g consist of .jspx pages.
we want to invoke this page inside an iframe.


ERROR :
When we try invoke the .jspx page inside an iframe, it gives an error as follows,
#### Unable to load content in a frame. Frame content will load at the top level.

Explanation :
we use the oracle.adf.view.rich.security.FRAME_BUSTING context parameter to use framebusting in our application. Framebusting is a way to prevent clickjacking, which occurs when a malicious web site tries to invoke a page originating from another domain into a frame.

We can use the following values to configure framebursting,

always: The page will show an error and redirect whenever it attempts to run in a frame.
differentDomain: The page will show an error and redirect only when it attempts to run in a frame on a page that originates in a different domain (the default).
never: The page can run in any frame on any originating domain.

SOLUTION :

Add the following context parameter to the Application web.xml file.

<context-param>
<param-name>oracle.adf.view.rich.security.FRAME_BUSTING</param-name>
<param-value>never</param-value>
</context-param>

Post a Comment

0 Comments