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

iFrame Sandbox disable scripts
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=3910
Page 1 of 1

Author:  mokomomo [ 31. Jul 2015, 04:54 ]
Post subject:  iFrame Sandbox disable scripts

Q 1. Is it possible to use a Sandbox feature with AiPro (which I purchased)?
Assuming there is no control over the parent page which is on an external domain.

Q2. Would it be possible to enable/disable only selected scripts?
For example to only show images.

http://www.w3.org/TR/html5/embedded-content-0.html#attr-iframe-sandbox
For example, using this Sandbox only the HTML will be loaded without scripts or forms, but also without images:
<iframe src="http://www.tripadvisor.com/Tourism-g187275-Germany-Vacations.html" width="1100" height="2500" sandbox="allow-same-origin"></iframe>

For example, using this Sandbox also images will be loaded:
<iframe src="http://www.tripadvisor.com/Tourism-g187275-Germany-Vacations.html" width="1100" height="2500" sandbox="allow-same-origin allow-scripts"></iframe>

My goal is to present user a 'screenshot like page' to preview the parent page, that when users click on directs to the original page:

For example, this will load all the scripts and images:
[advanced_iframe securitykey="abc123" use_shortcode_attributes_only="true" src="http://abcd.123" id="abcd" height="1400" width="1100" show_part_of_iframe="true" show_part_of_iframe_x="44" show_part_of_iframe_y="165" show_part_of_iframe_width="995" show_part_of_iframe_height="1184" hide_part_of_iframe="0,0,100%,100%,transparent,10,http://abcd.123,_blank"]

Simply including sandbox="allow-same-origin" to the AiPro script doesn't work. So again, the question is, how to include Sandbox with AiPro.

Cheers, danke.

Author:  TinyWebGallery [ 31. Jul 2015, 12:18 ]
Post subject:  Re: iFrame Sandbox disable scripts

Only supported attributes can be used.
I will add sandbox support in the next version.

So right now you would have to add this into the plugin code directly.

Best, Michael

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