Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to have a different HTTPS domain in an iFrame, on another HTTPS domain?

Tags:

https

ssl

iframe

Do browsers throw security errors when "https://sub.example.com" is embedded in an iFrame inside "https://www.example.com"?

If not, are there any restrictions? Do they need to be using the same SSL certificate (wildcard)?

like image 369
Murat Ayfer Avatar asked Jun 02 '11 22:06

Murat Ayfer


1 Answers

No, HTTPS content from many separate sources (via images, iframes, scripts etc) may comprise a single page whilst keeping the ‘secure’ UI, as long as all resources independently pass certificate validation. Doesn't have to be the same hostname, same domain, same certificate or same CA.

like image 146
bobince Avatar answered Sep 30 '22 04:09

bobince