HTTPS protocol and http iframe | Community
Skip to main content
Level 3
October 16, 2015
Solved

HTTPS protocol and http iframe

I have website that is https protocol. Now i need to embedded an iframe in a cq page

 
the 3 party url supports only  http. So the page does not render as it is mixed content.
 
http://stackoverflow.com/questions/3144986/http-and-https-iframe
 
 
Could some one suggest as what could be the best approach i could take
 
Thanks
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
gopalKaAccepted solution
Employee
October 16, 2015

Rather, you can call your domain  and proxy it to the third party url.

form example if the site is https://www.site1.com. The iframe src can be "https://www.site1.com/thirdpartyurl" and in ur  apache, you can write Proxy rule to redirect to the third party url.

4 replies

smacdonald2008
Level 10
October 16, 2015

This is not really an AEM issue - more of a general web issue with https and iframe. The StackOverflow thread says it's bad practice to do so. 

Translate
Level 3
October 16, 2015

Any inputs

Translate
Level 3
October 16, 2015

Thanks for  the input. But what could I do to overcome this situation in CQ ,,what  are  the  approaches I can take. As 3 party http url has content ,images, and html tables in it

Translate
gopalKaAccepted solution
Employee
October 16, 2015

Rather, you can call your domain  and proxy it to the third party url.

form example if the site is https://www.site1.com. The iframe src can be "https://www.site1.com/thirdpartyurl" and in ur  apache, you can write Proxy rule to redirect to the third party url.

Translate