There is a page containing an iframe that loads a page from the same domain. The page is not executing when navigating using and anchor tag that has target set to "_blank".
Getting the following error
Uncaught DOMException: Blocked a frame with origin "https://some.url.com" from accessing a cross-origin frame. at https://some.url.com/test/:342:23
When target blank is removed the link works fine.
How this issue can be fixed ?
Edit:
It is an MVC application that has two views. The first one Holds the Anchor tag like below
<a class="wsite-button wsite-button-small wsite-button-highlight" href="https://stackoverflow.com/questions/49252609/iframe-execution-blocked-when-navigated-using-anchor-tag-having-target-blank" target="_blank">
<span class="wsite-button-inner">Click here to access</span>
</a>
The above link redirects to another page that contains an iframe that is loading some html page.
The issue only occurs when target="_blank" is set.