Skip to Content
0
Jul 27, 2016 at 09:34 AM

OpenDocument Domain Relaxing for BSP Integration

175 Views

Hi,

we would like to build an application, where we communicate via JavaScript between a BSP parent application and Design Studio child applications.

However, we receive cross-origin policy errors when trying to access the various frames, although they are located within the same 2nd level domain.

Our simplified setup is

Now JS code A and JS code B should communicate.

Unfortunately, it seems that the OpenDocument iframe is not performing any domain relaxation, i.e. the value of the document.domain property is always remaining initial. The Design Studio iframe performs domain relaxation by default. Now the OpenDocument iframe is not accessible at all from any other frame, since the browser apparently includes the port in the domain validation.

The last issue is also described in this post, albeit in a different context:

javascript - What does document.domain = document.domain do? - Stack Overflow

Does somebody have a suggestion, how we can trigger the domain relaxation in the OpenDocument iframe to enable the JS communication?

Thanks