PDA

View Full Version : iframe window closed when loading SSL site



citiway
8 Jun 2014, 3:36 AM
Hi,

I create a new iframe window when I load a URL:

new Ext.Window({
title : item.title,
width : getViewSize(item, 'width'),
height: getViewSize(item, 'height'),
layout : 'fit',
bodyStyle: 'background:#ffffff;',
modal: true,
draggable: false,
items : [{
xtype : 'component',
id : 'iframe-win',
autoEl : {
tag : "iframe",
src : item.href
}
}]
}).show();

It works well except when the URL is prefixed with https. The iframe window is closed and the page is loaded in parent window.

I really couldn't figure out why is this happening. Does anyone know how to prevent it?

Edit: I guess SSL content cannot be displayed in iframe?

Thank you very much.

Gary Schlosberg
9 Jun 2014, 2:37 PM
I haven't heard of this issue. In which browser are you seeing this, and with which version of ExtJS?

I have heard that placing an HTTPS iframe inside of an HTTP frame can present security issues since the URL is obscured from the user.

citiway
11 Jun 2014, 5:33 AM
I have tested with Firefox, Chrome and Safari. The ExtJS version is 4.1

Seems it should work in iframe. I think the best solution is not to open it in iframe since there are security issues.

Thanks Gary.