I'm using the excellent iframe-resizer script (https://github.com/davidjbradshaw/iframe-resizer), I have this working across the board, except for a specific situation. The site I have in my iframe uses https:// (siteB.com) and the site where my iframe resides (siteA.com) uses http://. This gives me the following error: "Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://siteB.com') does not match the recipient window's origin ('http://www.siteA.com')." The calculation of the iframe works everywhere except on the iPhone (Safari), where the width is not calculated correctly (it's wider), could it be this error that's causing the problem? SiteB.com uses iframeResizer.contentWindow.js, so no problem there.
Tried to put a page from the same site (SiteA.com) in the iframe and this works without a problem on the iPhone. So is this an SSL problem or what could it be? Help very much appreciated, thanks!