簡體   English   中英

使用iFrame時IE11安全證書問題

[英]IE11 security certificate issue when using iFrame

當我嘗試使用iFrame和IE11打開一個新窗口時,出現以下錯誤,新窗口包含pdf內容。 IE7-IE10看起來不錯。 我在這里使用https。 錯誤信息:

內容被阻止,因為它沒有由有效的安全證書簽名。 有關更多信息,請參見Internet Explorer幫助中的“關於證書錯誤”。

我的代碼在這里:

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);
}

謝謝。

我已經好幾個禮拜了,終於到了IE 11的進階設定標簽,然后取消勾選

“警告證書地址不匹配”

這是自簽名證書的問題。 由於IE11的增強的安全功能,因此不允許使用https。

當我為IE11安裝證書時,它可以很好地用於會話。

http://esupport.trendmicro.com/solution/en-US/1103987.aspx

它可以與CA或其他組織頒發的證書一起使用。

謝謝

阿倫

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM