on 07-27-2016 10:34 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.