admin管理员组文章数量:1417052
I am getting the below error when I am trying to open one new window using iFrame and IE11, the new window is having a pdf content. IE7-IE10 looks good. I am using https here. Error message:
Content was blocked because it was not signed by a valid security certificate. For more information, see “About Certificate Errors” in Internet Explorer Help.
My Code goes here:
if (navigator.userAgent.indexOf('MSIE') !== -1){
var html = "<html><head><title></title>";
html += "</head><body style='margin: 0;'>";
html += "<iframe height='100%' width='100%' src='" + finalUrl +"'></iframe>";
html += "</body></html>";
// open new pop up window
YUIwinObj= window.open("", 'document', 'width=825,height=600,directories=no,status=yes,location=no,scrollbars=yes,resizable=yes');
YUIwinObj.document.write(html);
}
Thank you.
I am getting the below error when I am trying to open one new window using iFrame and IE11, the new window is having a pdf content. IE7-IE10 looks good. I am using https here. Error message:
Content was blocked because it was not signed by a valid security certificate. For more information, see “About Certificate Errors” in Internet Explorer Help.
My Code goes here:
if (navigator.userAgent.indexOf('MSIE') !== -1){
var html = "<html><head><title></title>";
html += "</head><body style='margin: 0;'>";
html += "<iframe height='100%' width='100%' src='" + finalUrl +"'></iframe>";
html += "</body></html>";
// open new pop up window
YUIwinObj= window.open("", 'document', 'width=825,height=600,directories=no,status=yes,location=no,scrollbars=yes,resizable=yes');
YUIwinObj.document.write(html);
}
Thank you.
Share Improve this question edited Feb 27, 2019 at 13:32 Georg Leber 3,5905 gold badges42 silver badges68 bronze badges asked Oct 24, 2014 at 15:13 Arun PatiArun Pati 1251 silver badge9 bronze badges 4- Is this a self-signed certificate? If not can you share the public HTTPS url? – Alex K. Commented Oct 24, 2014 at 15:18
- You only get this error when the URL is in an iframe, not when you access it directly? – Barmar Commented Oct 24, 2014 at 15:21
- This is a self signed certificate. Do you think we need any change to include IE11 in certificate. – Arun Pati Commented Oct 24, 2014 at 15:24
- 1 @Barmar correct. It works well without iframe. i.e. YUIwinObj = window.open(finalUrl, 'document', 'width=825,height=600,directories=no,status=yes,location=no,scrollbars=yes,resizable=yes'); – Arun Pati Commented Oct 24, 2014 at 15:26
2 Answers
Reset to default 3i was breaking my head for weeks , finally it is this go to IE 11 advanced settings tab and uncheck
"Warn about certificate address mismatch"
It was the issue with self-signed certificate. Due to enhanced security features of IE11, it was not allowing a https.
It worked fine for a session when I installed a certificate for the IE11.
http://esupport.trendmicro./solution/en-US/1103987.aspx
It works well with an certificate issued by CA or other organizations.
Thanks
Arun
本文标签: javascriptIE11 security certificate issue when using iFrameStack Overflow
版权声明:本文标题:javascript - IE11 security certificate issue when using iFrame - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745261757a2650386.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论