Post question form in iframe in Internet Explorer 11

I have a web page embedded in an iFrame form.

The web page is posted back using the following javascript code called by an anchor tag

function GoToPdf(link) {
    var form = document.forms[0];
    form.action = link;
    form.target = "_blank";
    form.method = "Post";
    form.submit();
}

      

The passed link is an .aspx page that extracts the JSON data passed in the request body and generates a PDF to download.

Everything works fine on Chrome and Firefox, but not IE 11. If the webpage is outside the iFrame, it also works on IE 11.

In an iframe in IE 11, the page falls back to the .aspx page, but the request body contains no data.

Any ideas.

thank

Tim

+3


source to share


1 answer


This sounds like a security issue. Try adding the domain you are trying to access the IE trusted zone to.



+3


source







All Articles