Expand my Community achievements bar.

SOLVED

HTTPS protocol and http iframe

Avatar

Level 3

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
1 Accepted Solution

Avatar

Correct answer by
Employee

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.

View solution in original post

4 Replies

Avatar

Level 10

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. 

Avatar

Level 3

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

Avatar

Correct answer by
Employee

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.