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

Accessing an HTTPS cross-origin frame
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=5599
Page 1 of 1

Author:  nagohmit [ 7. Dec 2018, 01:08 ]
Post subject:  Accessing an HTTPS cross-origin frame

I'm getting an error when trying to load an HTTPS page into an Advanced iFrame on a non-HTTPS site. The problem is that the iframe doesn't auto-size. And, there's an (shown below) about blocked content from a cross-frame.

Main page: http://www2.peachtreelighting.com/recessed-downlighting/

Targeted iframe: https://app.peachtreelighting.com/product/index.cfm?category=12&lightsource=35&header=false&footer=false

This iframe page includes the document.domain script (<script>document.domain='peachtreelighting.com';</script>)

Short code:

[advanced_iframe use_shortcode_attributes_only="true" src="https://app.peachtreelighting.com/product/index.cfm?category=12&lightsource=35&header=false&footer=false" width="100%" height="600" scrolling="auto" id="advanced_iframe" hide_page_until_loaded="true" onload_resize="true" onload_resize_delay="10" additional_height="20" document_domain="peachtreelighting.com" use_post_message="true"]

The error is:
DOMException: Blocked a frame with origin "http://www2.peachtreelighting.com" from accessing a cross-origin frame.

I would appreciate any suggestions, tips, or corrections to my configuration.

Thanks,
nagohmit

Author:  TinyWebGallery [ 7. Dec 2018, 15:35 ]
Post subject:  Re: Accessing an HTTPS cross-origin frame

why don't you have https on your main page? and the subdomain is https?

If you have this scenario you need to use example 53:
http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/external-workaround-with-post-message#e53

Best, Michael

Author:  nagohmit [ 7. Dec 2018, 18:40 ]
Post subject:  Re: Accessing an HTTPS cross-origin frame

Thanks for the reply, Michael.

I'm getting all subdomains working on https and will then come back to the iframe issue.

Author:  TinyWebGallery [ 9. Dec 2018, 23:38 ]
Post subject:  Re: Accessing an HTTPS cross-origin frame

o.k.

Best, Michael

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