Wednesday, 10 May 2017

Blocked from accessing a cross origin frame

When I put allow-same-origin, it works but when I remove it, I have :

Blocked a frame with origin "http://localhost:****" from accessing a cross-origin frame.

I need just to allow allow-scripts and allow-modals.

Here is the working code :

function updateIframe(iframe) {
   iframe[0].contentWindow.getMinHeight();
}

I search on the forum but the protocol and the domain of iframe and of the site is the same. I don't understand where can be the error.

The parent : http://localhost****

The iframe src : http://localhost:****/My/path/for/the/file

Port is the same and I need to avoid allow-same-origin for the cookie security



via Erased

No comments:

Post a Comment