[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Using RISCIframeIncludeBuffer  XML
Forum Index -> Development
Author Message
abender

Power User

Joined: 04/02/2010 16:32:13
Messages: 34
Online

Hi Björn,

we use iframeinclude to include a page from another application. When this page tries to access the iframeconfiguration via window.parent.RISCIframeIncludeBuffer we get an exception.


Uncaught (in promise) DOMException: Blocked a frame with origin "http://localhost:8080" from accessing a cross-origin frame.
at h.<anonymous> (http://localhost:8080/dokument-ui/elektra.98e8e150fc21fc8cec1f.js:3597:933)
at Generator.next (<anonymous>)
at s (http://localhost:8080/dokument-ui/elektra.98e8e150fc21fc8cec1f.js:3583:3312)
 


CapainCasa is running on localhost:8180. The other application on localhost:8080.
In production the applications will be on different servers but in the same domain.

Layout XML

<t:iframeinclude id="neuFAiFrame" height="100%" iframeconfiguration="#{e.NeuFADokumentTabUI.iframeconfiguration}" iframepage="#{e.NeuFADokumentTabUI.iframepage}" width="100%" name="neuFAiFrame" />
 


Code in embedded page

const url = document.location.href;
const index = url.indexOf("?");
const bufferId = url.substring(index+1);
let info: any;
info = window.parent.RISCIframeIncludeBuffer[bufferId];
 


In system.xml we deactivated HttpHeaderAttributesForPagesFilter

<filterconfiguration
active="false"
classname="org.eclnt.jsfserver.util.HttpHeaderAttributesForPagesFilter"/>
 


Is there a way to use RISCIframeIncludeBuffer in this scenario?

Regards
Axel

Axel Bender, DXC Technology
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team