在做BIEE与其它系统集成的时候,经常需要把BIEE的页面用Iframe嵌入其它系统中(比如业务系统)
默认情况下,出于安全的考虑(clickjacking),BIEE 11g是不能直接嵌入iframe中的,
会提示“OBIEE content can not be displayed in the IFrame”
已Windows server 2003 系统为例:
如果有这方面的需要,我们需要进行如下配置:
\bihome\instances\instance1\config\OracleBIPresentationServicesComponent\coreapplication_obips1目录下的instanceconfig.xml配置文件
在Security标签内加入allow
如下所示:
<Security> <InIFrameRenderingMode>allow</InIFrameRenderingMode> <!--This Configuration setting is managed by Oracle Enterprise Manager Fusion Middleware Control--> <ClientSessionExpireMinutes>30</ClientSessionExpireMinutes> </Security>
修改\bihome\Oracle_BI1\bifoundation\web\app\WEB-INF 目录下的web.xml
添加如下内容:
<context-param> <param-name>oracle.adf.view.rich.security.FRAME_BUSTING</param-name> <param-value>never</param-value> </context-param>
如下所示:
<servlet-mapping> <servlet-name>RelatedContent</servlet-name> <url-pattern>/RelatedContent</url-pattern> </servlet-mapping> <context-param> <param-name>oracle.adf.view.rich.security.FRAME_BUSTING</param-name> <param-value>never</param-value> </context-param> <login-config> <auth-method>CLIENT-CERT</auth-method> </login-config>
全部修改完毕之后,重启BI 服务。
注:如果还不行的话,请在清除一下浏览器的缓存。