Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

MIsmatch http & httpS
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4155
Page 1 of 1

Author:  pooley [ 26. Sep 2016, 21:39 ]
Post subject:  MIsmatch http & httpS

We upgraded to advanced iframe pro last week, in part because we needed iframes that would be responsive AND dynamically resize. We have it sort of working except for one error that keeps the resize from working for me on Chrome for mac. ( It seems to resize on iOS and on Firefox...thats a good thing)

The page is here: https://www.smccme.edu/admissions-aid/visit/visit-sign-up/

When we started we had a mismatch between the form that is being iframed, it requires a secure webpage, and the surrounding website, which was not secure. We have put certificates everywhere but I am still getting an error from the dev console

ai_external.js:184 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://www.smccme.edu') does not match the recipient window's origin ('https://www.smccme.edu').aiExecuteWorkaround_advanced_iframe @ ai_external.js:184

Here is line 184: parent.postMessage('type=height&' + send_data,'http://www.smccme.edu');

I am sure I could go in and edit ai_external.js by hand, but am worried it will get over written if I update settings...is this set somewhere that I can change either in the plugin or in the system?

Author:  TinyWebGallery [ 26. Sep 2016, 22:29 ]
Post subject:  Re: MIsmatch http & httpS

You need to press save in the administration again. Because then the https site is saved. Seems you have saved the administration at the time you still had a http page.


In 7.3 I will even support http pages with https pages and the external workaround.
See http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/external-workaround-with-post-message#e53

Best, Michael

Author:  pooley [ 26. Sep 2016, 22:41 ]
Post subject:  Re: MIsmatch http & httpS

I am not going to lie...I did that, and it didn't seem to help...but I just did it now....and you are right, so thank you, I am sure you did something.

Author:  TinyWebGallery [ 27. Sep 2016, 19:09 ]
Post subject:  Re: MIsmatch http & httpS

:). I think the browser cached the ai_external.js.

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/