APE crash by cors

15 views
Skip to first unread message

Adam Pucicki

unread,
Dec 22, 2023, 6:48:26 AM12/22/23
to APE Project
Hi, 
I use APE and recently after updating chromium based browsers there was a communication failure with APE.
Cors policy blocks the loading iframe window. The code blocks at this point:
iframe.addEvent('load', function() {
if (!iframe.contentWindow.APE) setTimeout(iframe.onload, 100);//Sometimes IE fires the onload event, but the iframe is not loaded -_-.
else iframe.contentWindow.APE.init(config;)
});

The error is :
Failed to read a named property 'APE' from 'Window': Blocked a frame with origin 'address_page_with_other_port' from accessing a cross-origin frame.

how can this be circumvented without disabling security in the browser?
Reply all
Reply to author
Forward
0 new messages