Copy link to clipboard
Copied
Hi guys,
Recently with the latest update I can't access `window.top.location.href` from within my iframe. This was working in a previous illustrator version. I understand that adobe is hosted locally and if I have a web iframe it won't be able to access it in a normal browser. However, we need this because some SSO providers don't like to be run within iframe setting and they will attempt to modify top level window.
Is there any option to restore access to `window.top.location.href` as it was available in previous versions?
I have the following parameters for CEFCommandLine.
<CEFCommandLine>
<Parameter>--enable-nodejs</Parameter>
<Parameter>--mixed-context</Parameter>
<Parameter>--persist-session-cookies</Parameter>
</CEFCommandLine>
Copy link to clipboard
Copied
Just to add more context. This is not broken in Photoshop or InDesign.
It looks like I can't include any webpage in an iframe that has restricted frame-ancestors as well. Again this is only broken within Adobe illustrator.
Can someone help investigating this issue?
Copy link to clipboard
Copied
Shouldn't you be able to construct this if it does not exist? i.e.
window['top']['location']['href'] = document.location;
Copy link to clipboard
Copied
The reason why I can't access it because adobe is hosted on local machine and iframe domain is different. So this is a standard browser security. However, even if I am able to solve window.top.location.href issue, I won't be able to solve frame-ancestors problem which is more critical when using iframes within adobe.
What I am not sure about this was working using the previous version but now it is broken. This is working today with Photoshop and InDesign. So I am hoping maybe Adobe team can have a look and verify if it is something that was missed and we can fix soon.
Copy link to clipboard
Copied
Please refer to the changes due to CEP 11 and workarounds - https://github.com/Adobe-CEP/CEP-Resources/blob/master/CEP_11.x/Documentation/Issues.md
Copy link to clipboard
Copied
The issue started with 25.3 version. I just tested 25.2.3 and it was working fine.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now