There is a form
<form id="s-plugin-cml1c-import" method="post" action="?plugin=cml1c&action=upload" enctype="multipart/form-data" target="s-plugin-cml1c-import-iframe"><input type="file" name="files"></form> and there is a frame where the result of processing the form is loaded
<iframe name="s-plugin-cml1c-import-iframe" id="s-plugin-cml1c-import-iframe"></iframe> In my js I'm trying to get the data from the form uploaded to the iframe
$('#s-plugin-cml1c-import-iframe').load(function (e) { try { console.log($(this).contents()); } catch(e) {...} After calling $(this).contents() gives the error:
"The content from the HTMLDFrameElement": Blocked a frame with origin " http://baby-upgrade.ru " from accessing a cross-origin frame.
Everything happens within a single domain. What could be the problem?