<?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>MaisonBisson.com &#187; cross domain</title>
	<atom:link href="http://maisonbisson.com/blog/post/tag/cross-domain/feed/" rel="self" type="application/rss+xml" />
	<link>http://maisonbisson.com</link>
	<description>A bunch of stuff I would have emailed you about.</description>
	<lastBuildDate>Sat, 14 Nov 2009 20:14:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Plan C: Signed JavaScripts</title>
		<link>http://maisonbisson.com/blog/post/10828/signed-javascripts/</link>
		<comments>http://maisonbisson.com/blog/post/10828/signed-javascripts/#comments</comments>
		<pubDate>Tue, 20 Sep 2005 16:17:09 +0000</pubDate>
		<dc:creator>Casey Bisson</dc:creator>
				<category><![CDATA[Libraries & Networked Information]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[cross domain]]></category>
		<category><![CDATA[cross domain script exclusion]]></category>
		<category><![CDATA[cross domain scripting]]></category>
		<category><![CDATA[internet security]]></category>
		<category><![CDATA[intranet environment]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[javascript security]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[security components]]></category>
		<category><![CDATA[signed script]]></category>
		<category><![CDATA[signed scripts]]></category>
		<category><![CDATA[web scripting]]></category>
		<category><![CDATA[web security]]></category>
		<category><![CDATA[xdomain]]></category>
		<category><![CDATA[xmlhttprequest]]></category>

		<guid isPermaLink="false">http://maisonbisson.com/blog/?p=10828</guid>
		<description><![CDATA[
The Mozilla docs on JavaScript security give a hint of hope that signed scripts will work around the cross-domain script exclusions that all good browsers enforce. But an item at DevArticles.com throws water on the idea:
Signed scripts are primarily useful in an intranet environment; they’re not so useful on the Web in general. To see [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="maisonbisson-10828"><!-- &nbsp; --></abbr>
<p>The Mozilla docs on <a href="http://www.mozilla.org/projects/security/components/jssec.html">JavaScript security</a> give a hint of hope that <a href="http://www.mozilla.org/projects/security/components/signed-scripts.html">signed scripts</a> will work around the cross-domain script exclusions that all <a href="http://browsehappy.com/">good browsers</a> enforce. But an item at <a href="http://www.devarticles.com/c/a/JavaScript/JavaScript-Security/3/">DevArticles.com</a> throws water on the idea:</p>
<blockquote><p>Signed scripts are primarily useful in an intranet environment; they’re not so useful on the Web in general. To see why this is, consider that even though you can authenticate the origin of a signed script on the Web, there’s still no reason to trust the creator. If you encounter a script signed by your company’s IT department, you can probably trust it without much risk. However, you’d have no reason to think that a party you don’t know—for example, a random company on the Web—is at all trustworthy. So they signed their JavaScript—that doesn’t mean it doesn’t try to do something malicious! And if it did, most users would have no way of knowing.</p></blockquote>
<p>In short, most browsers will pop up a scary looking security window asking the user what he or she want to do, and the chances of the user hitting the button marked “no, I don&#8217;t dare allow cross-domain XMLHTTPRequest calls” are at least 50-50. And, even if they weren&#8217;t, who would tolerate that message appearing regularly?</p>
<p><!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">tags: <a href="http://www.technorati.com/tag/cross domain" rel="tag">cross domain</a>, <a href="http://www.technorati.com/tag/cross domain script exclusion" rel="tag">cross domain script exclusion</a>, <a href="http://www.technorati.com/tag/cross domain scripting" rel="tag">cross domain scripting</a>, <a href="http://www.technorati.com/tag/internet security" rel="tag">internet security</a>, <a href="http://www.technorati.com/tag/intranet environment" rel="tag">intranet environment</a>, <a href="http://www.technorati.com/tag/javascript" rel="tag">javascript</a>, <a href="http://www.technorati.com/tag/javascript security" rel="tag">javascript security</a>, <a href="http://www.technorati.com/tag/mozilla" rel="tag">mozilla</a>, <a href="http://www.technorati.com/tag/security" rel="tag">security</a>, <a href="http://www.technorati.com/tag/security components" rel="tag">security components</a>, <a href="http://www.technorati.com/tag/signed script" rel="tag">signed script</a>, <a href="http://www.technorati.com/tag/signed scripts" rel="tag">signed scripts</a>, <a href="http://www.technorati.com/tag/web scripting" rel="tag">web scripting</a>, <a href="http://www.technorati.com/tag/web security" rel="tag">web security</a>, <a href="http://www.technorati.com/tag/xdomain" rel="tag">xdomain</a>, <a href="http://www.technorati.com/tag/xmlhttprequest" rel="tag">xmlhttprequest</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://maisonbisson.com/blog/post/10828/signed-javascripts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Plan B: Remote Scripting With IFRAMEs</title>
		<link>http://maisonbisson.com/blog/post/10802/working-around-cross-domain-xmlhttprequest-limitations/</link>
		<comments>http://maisonbisson.com/blog/post/10802/working-around-cross-domain-xmlhttprequest-limitations/#comments</comments>
		<pubDate>Mon, 19 Sep 2005 16:13:46 +0000</pubDate>
		<dc:creator>Casey Bisson</dc:creator>
				<category><![CDATA[Libraries & Networked Information]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[browser security]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[cross domain]]></category>
		<category><![CDATA[cross domain script exclusion]]></category>
		<category><![CDATA[frustration]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[remote scripting]]></category>
		<category><![CDATA[web application]]></category>
		<category><![CDATA[web applications]]></category>
		<category><![CDATA[xdomain]]></category>
		<category><![CDATA[xmlhttprequest]]></category>

		<guid isPermaLink="false">http://maisonbisson.com/blog/?p=10802</guid>
		<description><![CDATA[
I have plans to apply AJAX to our library catalog but I&#8217;m running into a problem where I can&#8217;t do XMLHttpRequest events to servers other than the one I loaded the main webpage from. Mozilla calls it the “same origin policy,” everyone else calls it a cross-domain script exclusion, or something like that.
Some Mozilla folks [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="maisonbisson-10802"><!-- &nbsp; --></abbr>
<p>I have plans to apply <a href="http://en.wikipedia.org/wiki/AJAX">AJAX</a> to our library catalog but I&#8217;m running into a problem where I can&#8217;t do <a href="http://kb.mozillazine.org/XMLHttpRequest" title="XMLHttpRequest - MozillaZine Knowledge Base">XMLHttpRequest</a> events to servers other than the one I loaded the main webpage from. Mozilla calls it the “<a href="http://www.mozilla.org/projects/security/components/jssec.html#sameorigin">same origin policy</a>,” everyone else calls it a <a href="https://lists.latech.edu/pipermail/javascript/2004-June/008110.html">cross-domain script exclusion</a>, or something like that.</p>
<p>Some Mozilla folks are working on a <a href="http://lxr.mozilla.org/seamonkey/source/extensions/webservices/docs/New_Security_Model.html" title="Securing Untrusted Scripts Behind Firewalls">standard to address the problem</a>, but it could be quite a while before browser support is common enough to build for it.</p>
<p>So Plan A was to use simple AJAX with XMLHTTPRequest. Plan B comes from this crazy suggestion at Apple&#8217;s developer site: <a href="http://developer.apple.com/internet/webcontent/iframe.html" title="Remote Scripting with IFRAME">Remote Scripting with IFRAME</a>. It looks like different functions are subject to different restrictions, so the theory is that a JavaSctript loaded in a page in a hidden IFRAME can call functions from the parent page and do pretty much everything we&#8217;ve come to expect of XMLHTTPRequest. Here&#8217;s <a href="http://developer.apple.com/internet/webcontent/client-complex.html" title="Remote Scripting with an IFrame - complex client page">an example</a> they offer. </p>
<p>Crazy as it is it works, and it gets around some cross-domain script exclusions for some browsers, but it still gets trapped by Mozilla.<br />
<!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">tags: <a href="http://www.technorati.com/tag/ajax" rel="tag">ajax</a>, <a href="http://www.technorati.com/tag/apple" rel="tag">apple</a>, <a href="http://www.technorati.com/tag/browser security" rel="tag">browser security</a>, <a href="http://www.technorati.com/tag/browsers" rel="tag">browsers</a>, <a href="http://www.technorati.com/tag/cross domain" rel="tag">cross domain</a>, <a href="http://www.technorati.com/tag/cross domain script exclusion" rel="tag">cross domain script exclusion</a>, <a href="http://www.technorati.com/tag/frustration" rel="tag">frustration</a>, <a href="http://www.technorati.com/tag/iframe" rel="tag">iframe</a>, <a href="http://www.technorati.com/tag/javascript" rel="tag">javascript</a>, <a href="http://www.technorati.com/tag/mozilla" rel="tag">mozilla</a>, <a href="http://www.technorati.com/tag/remote scripting" rel="tag">remote scripting</a>, <a href="http://www.technorati.com/tag/web application" rel="tag">web application</a>, <a href="http://www.technorati.com/tag/web applications" rel="tag">web applications</a>, <a href="http://www.technorati.com/tag/xdomain" rel="tag">xdomain</a>, <a href="http://www.technorati.com/tag/xmlhttprequest" rel="tag">xmlhttprequest</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://maisonbisson.com/blog/post/10802/working-around-cross-domain-xmlhttprequest-limitations/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>