I'm rendering a iframe
on a page, this iframe
makes a request via ajax on the old system, and when capturing this data, I'm trying to access a method on the parent page to send the data, example ...
window.parent.recebeDados(dados)
This brings me the error:
( Mozilla browser ): SecurityError: Permission denied to access property "test" on cross-origin object
( Chrome browser ): Blocked a frame with origin " link " from accessing a cross-origin frame. / p>
I tried to add the following goals
<meta HTTP-EQUIV="Access-Control-Allow-Origin" CONTENT="http://site.com">
<meta http-equiv="X-FRAME-OPTIONS" content="ALLOW-FROM http://site.com">
But without success.