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

#1

Issue of cross origin frame occurs while accessing the Iframe contents.

<iframe #iframe id=“myIframe” [src]=“iframeURL”></iframe>

How to fix the blocked a frame issue. What i need to achieve is to access

document.getElementById(“myIframe”).contentWindow.location.href.

how to achieve this in ionic android application