<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iframe sandbox in html Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/iframe-sandbox-in-html/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/iframe-sandbox-in-html/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 04 Aug 2021 10:05:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>HTML: Sandbox</title>
		<link>https://www.scmgalaxy.com/tutorials/html-sandbox/</link>
					<comments>https://www.scmgalaxy.com/tutorials/html-sandbox/#respond</comments>
		
		<dc:creator><![CDATA[vikashdev k]]></dc:creator>
		<pubDate>Wed, 04 Aug 2021 10:05:49 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[html sandbox]]></category>
		<category><![CDATA[html tag]]></category>
		<category><![CDATA[iframe sandbox in html]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7366</guid>

					<description><![CDATA[<p>The restriction to the content such as disabling script or plugins is given by the internal frame. An iframe with [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/html-sandbox/">HTML: Sandbox</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">The restriction to the content such as disabling script or plugins is given by the internal frame.</p>



<p class="wp-block-paragraph">  An iframe with sandbox value as empty will have the following restrictions: &#8211;</p>



<ul class="wp-block-list"><li>Forms can not be submitted</li><li>Framed document cannot navigate its top level parent</li><li>Scripts are disabled                                            </li><li>Stops frame content from using plugins</li><li>New windows(browsing contexts) cannot be created by the framed document</li><li>Framed content will be treated from an unique origin. Hence it will not have access to data stored in earlier cookies</li><li>Disable APIs</li><li>Automatically triggered features like auto playing videos etc are blocked</li></ul>



<h4 class="wp-block-heading">&lt;iframe sandbox> &lt;/iframe></h4>



<h2 class="wp-block-heading">                            <strong>Values</strong></h2>



<figure class="wp-block-table is-style-stripes"><table><tbody><tr><td><strong>Value</strong></td><td><strong>Description</strong></td></tr><tr><td>(no value)</td><td>Applies all restrictions</td></tr><tr><td>allow-forms</td><td>Re-enables form submission</td></tr><tr><td>allow-pointer-lock</td><td>Re-enables APIs</td></tr><tr><td>allow-popups</td><td>Re-enables popups</td></tr><tr><td>allow-same-origin</td><td>Allows the iframe content to be treated as being from the same origin</td></tr><tr><td>allow-scripts</td><td>Re-enables scripts</td></tr><tr><td>allow-top-navigation</td><td>Allows the iframe content to navigate its top-level browsing context</td></tr></tbody></table></figure>



<h2 class="wp-block-heading"><strong>                     allow-same-origin</strong></h2>



<p class="wp-block-paragraph">A web page can have access to a second web page only if both have the same origin.</p>



<p class="wp-block-paragraph">Uniform Resource Identifier (URI), Port Number, and HostName</p>



<p class="wp-block-paragraph"><strong>Same-origin</strong></p>



<ul class="wp-block-list"><li>https://www.google.com/p/contact-us.html</li><li>https://www.google.com/p/about-us.html</li></ul>



<p class="wp-block-paragraph"><strong>Different Port So Not in the Same Origin</strong></p>



<ul class="wp-block-list"><li>https://www.google.com:82/p/contact-us.html</li><li>https://www.google.com/p/about-us.html</li></ul>



<p class="wp-block-paragraph"><strong>Different Host So Not in the Same Origin</strong></p>



<ul class="wp-block-list"><li>https://en.www.google.com/p/contact-us.html</li><li>https://www.google.com/p/contact-us.html </li></ul>



<h2 class="wp-block-heading">                <strong>allow-top-navigation</strong></h2>



<p class="wp-block-paragraph">Top navigation allows us to open the linked document in the full body of the window or the top browsing context.</p>



<figure class="wp-block-table is-style-stripes"><table><tbody><tr><td><strong>Attribute</strong></td><td><strong>Value</strong></td><td><strong>Description</strong></td></tr><tr><td>target</td><td>_blank _parent _top framename _self</td><td>Opens the linked document in a new window or tab Opens the linked document in the parent frame Opens the linked document in the full body of the window Opens the linked document in a named frame Opens the linked document in the same frame as it was clicked (this is the default)</td></tr></tbody></table></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/html-sandbox/">HTML: Sandbox</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/html-sandbox/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
