Note that there are some explanatory texts on larger screens.

plurals
  1. POUnsafe JavaScript attempt to access frame with URL
    primarykey
    data
    text
    <p>I have a page with an Iframe and a Javascript from Iframe that access to a function of parent frame. The pages are on the same server (it's not cross domain scripting), I'haven't any problem with FF and IE but when I use it on Chrome I have the message below.</p> <blockquote> <p>Unsafe JavaScript attempt to access frame with URL <a href="http://samedomain:51700/irj/servlet/prt/portal/prtroot/CRMApp73.StoricoApp">http://samedomain:51700/irj/servlet/prt/portal/prtroot/CRMApp73.StoricoApp</a> from frame with URL <a href="http://samedomain:51700/irj/servlet/prt/portal/prtroot/CRMApp73.CRMOProxy">http://samedomain:51700/irj/servlet/prt/portal/prtroot/CRMApp73.CRMOProxy</a>. Domains, protocols and ports must match.</p> </blockquote> <p>How can I solve this issue? I search by google since 4 hours. I hope someone can help me.</p> <p>EDIT: code</p> <p>This is the JavaScript in the iframe page. This JavaScript call a parent frame Javascript function "setUfficioPostale". This is the point where Chrome give me "Unsafe Access..." error.</p> <pre><code>&lt;script&gt; window.parent.setUfficioPostale(map); &lt;/script&gt; </code></pre> <p>This is the Javascript in the parent frame for form submitting. This is for sending hidden form with hidden params to a page loaded in iframe.</p> <pre><code>function onAltroUfficioClick(){ document.getElementById("hiddenParams").submit(); $('#framePosteMaps').show(); } </code></pre> <p>This is the iframe definition in the parent page.</p> <pre><code>&lt;iframe id="framePosteMaps" scrolling="no" name="framePosteMaps"&gt;&lt;/iframe&gt; </code></pre> <p>This is the form with target attribute to send parameters to iframe page.</p> <pre><code>&lt;form id="hiddenParams" target="framePosteMaps" action="http://samedomain:51700/irj/servlet/prt/portal/prtroot/TestFrameRC.SimPerProxy" method="POST"&gt; &lt;input type="hidden" name="distanza" value="10"&gt; &lt;input type="hidden" name="cliente" value="Retail"&gt; .................... &lt;/form&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload