Mitkees & Webcenter

Into the charm of Oracle Webcenter and ADF

ADF:Disable/enable your application pages to be added as iFrame in other websites


While Implementing a solution i didn’t find a better way to add a feature to my application except an iframe include in my page , which i don’t prefer. Sometimes we use iframes as a point of integration between applications.

So how to enable/disable our pages in an application to be reused or restrict its re-use as for security requirements??
the problem appeared to me that i have developed 2 applications and i want to use a page from application 1 to be added in a page in application 2 as an iframe & the result was the iframe is empty in mozilla Firefox/chrome and “this content cannot be displayed in frame” for IE.

After a deep searching i have found that there is context parameter that is used in the web.xml which enable/disable this feature.

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

The parameter values

  • 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.

And for more reading check this link

Advertisements

2 responses to “ADF:Disable/enable your application pages to be added as iFrame in other websites

  1. Ahmed Sayed March 11, 2014 at 5:42 pm

    Thanks a lot.. again 🙂

  2. Ahmed Ġouda March 20, 2017 at 8:04 am

    Thanks a lot ya Miko, I’ve used this context-param today 🙂

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: