Skip to Content

OpenDocument Domain Relaxing for BSP Integration

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 28, 2016 at 07:01 AM

    Hi Jorg,

    I have no idea about BSP but the error that you are facing related to CORS. You can read more about it here - enable cross-origin resource sharing

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Mohanraj,

      thanks, I am aware of the CORS architecture. The issue is, that I don't know how enable it across the OpenDocument iframe, since I am not aware of any way how to execute the required JavaScript code in this iframe to allow the required domain relaxing.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.