<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to make XMLHttpRequest calls to another server in your domain</title>
	<atom:link href="http://ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 09 Feb 2012 06:55:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: tpaulengineer</title>
		<link>http://ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain/comment-page-1#comment-280389</link>
		<dc:creator>tpaulengineer</dc:creator>
		<pubDate>Tue, 16 Mar 2010 15:37:37 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain#comment-280389</guid>
		<description>I figured it out myself. thanks</description>
		<content:encoded><![CDATA[<p>I figured it out myself. thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tpaulengineer</title>
		<link>http://ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain/comment-page-1#comment-280172</link>
		<dc:creator>tpaulengineer</dc:creator>
		<pubDate>Wed, 10 Mar 2010 23:17:20 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain#comment-280172</guid>
		<description>might i get the full code example?</description>
		<content:encoded><![CDATA[<p>might i get the full code example?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ohr</title>
		<link>http://ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain/comment-page-1#comment-257890</link>
		<dc:creator>ohr</dc:creator>
		<pubDate>Mon, 29 Oct 2007 02:51:04 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain#comment-257890</guid>
		<description>I saw this code before, a goo day of crossing domain</description>
		<content:encoded><![CDATA[<p>I saw this code before, a goo day of crossing domain</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: suraj</title>
		<link>http://ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain/comment-page-1#comment-255058</link>
		<dc:creator>suraj</dc:creator>
		<pubDate>Thu, 06 Sep 2007 13:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain#comment-255058</guid>
		<description>whenewer u discuss abt any technique pls describe it in the detail....</description>
		<content:encoded><![CDATA[<p>whenewer u discuss abt any technique pls describe it in the detail&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hilda</title>
		<link>http://ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain/comment-page-1#comment-217485</link>
		<dc:creator>Hilda</dc:creator>
		<pubDate>Wed, 29 Nov 2006 09:18:04 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain#comment-217485</guid>
		<description>Hi Abe, it mite seem funny rite now but i still have problems making request using the xmlhttprequest approach from my firefox mozilla browser i really need assistance.Each time i make a request to my server it throws an uncaught exception that i do not have authorised permission to make an xmlhttprequest.open request. meanwhile am working with svg and javascript. my servlet is what am trying to calls. this is supposed to load an svg page from the servlet.
Can i get any help its really getting frustrating for me.</description>
		<content:encoded><![CDATA[<p>Hi Abe, it mite seem funny rite now but i still have problems making request using the xmlhttprequest approach from my firefox mozilla browser i really need assistance.Each time i make a request to my server it throws an uncaught exception that i do not have authorised permission to make an xmlhttprequest.open request. meanwhile am working with svg and javascript. my servlet is what am trying to calls. this is supposed to load an svg page from the servlet.<br />
Can i get any help its really getting frustrating for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tracker1</title>
		<link>http://ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain/comment-page-1#comment-77378</link>
		<dc:creator>tracker1</dc:creator>
		<pubDate>Tue, 29 Aug 2006 21:57:02 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain#comment-77378</guid>
		<description>_l.m.orchard_

It may be a bit paranoid, but imagine having a site like myspace, with an exploit used to push a javascript snippet (as has been done), but now, instead of spreading though just myspace, every pageview on myspace will now hammer *your* web server... effectively a ddos attack.

It&#039;s a good thing to have security in mind in the web space.. in IE, you can add the site to your &quot;Trusted&quot; sites, and set security for that context to LOW... would be nice for similar settings for Firefox, etc.. allowing you to override for your apps.. but for the general web.. it&#039;s a good thing.</description>
		<content:encoded><![CDATA[<p>_l.m.orchard_</p>
<p>It may be a bit paranoid, but imagine having a site like myspace, with an exploit used to push a javascript snippet (as has been done), but now, instead of spreading though just myspace, every pageview on myspace will now hammer *your* web server&#8230; effectively a ddos attack.</p>
<p>It&#8217;s a good thing to have security in mind in the web space.. in IE, you can add the site to your &#8220;Trusted&#8221; sites, and set security for that context to LOW&#8230; would be nice for similar settings for Firefox, etc.. allowing you to override for your apps.. but for the general web.. it&#8217;s a good thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave D</title>
		<link>http://ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain/comment-page-1#comment-50021</link>
		<dc:creator>Dave D</dc:creator>
		<pubDate>Thu, 20 Jul 2006 14:49:57 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain#comment-50021</guid>
		<description>Setting document.domain after doing the xmlhttprequest is impossible in my case.  This is a clear example of misconfigured and paranoid browser security.</description>
		<content:encoded><![CDATA[<p>Setting document.domain after doing the xmlhttprequest is impossible in my case.  This is a clear example of misconfigured and paranoid browser security.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Nixey</title>
		<link>http://ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain/comment-page-1#comment-1709</link>
		<dc:creator>Peter Nixey</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain#comment-1709</guid>
		<description>I find it interesting that people are continually trying to get around the cross-domain limitation of XHR but only useful to the extent that it helps inform the browser builders of where they should close loopholes.

News just broke that Yahoo mail now includes an RSS reader. Imagine that the script-stripping ability isn&#039;t quite perfect and that someone can execute a script from an RSS item in the reader. With any sort of cross-domain ability (or even an extended image url), XHR can now be used to harvest all that person&#039;s emails and send them off to any given domain. 

The vulnerability with supporting cross-domain requests is not of course the owner of the domain but with the possibility of XSS. What I would really like to see as a solution to all these problems is some way of firewalling content within a page.

Imagine that instead of having to strip all script tags, content could just be enveloped in a -firewall- (or whatever) tag that prevented all script execution within it. What an easier place the world would be.

There is a half-cocked solution tot this at the moment which is putting content in an iframe from a different domain. As you make clear in the article above though, the problem with this is that you cannot then modify the content of  that iframe from the parent. 

What we could really do with is some sort of asymmetric script access. I&#039;m glad I&#039;m not the one that&#039;s got to figure out how to implement it though!</description>
		<content:encoded><![CDATA[<p>I find it interesting that people are continually trying to get around the cross-domain limitation of XHR but only useful to the extent that it helps inform the browser builders of where they should close loopholes.</p>
<p>News just broke that Yahoo mail now includes an RSS reader. Imagine that the script-stripping ability isn&#8217;t quite perfect and that someone can execute a script from an RSS item in the reader. With any sort of cross-domain ability (or even an extended image url), XHR can now be used to harvest all that person&#8217;s emails and send them off to any given domain. </p>
<p>The vulnerability with supporting cross-domain requests is not of course the owner of the domain but with the possibility of XSS. What I would really like to see as a solution to all these problems is some way of firewalling content within a page.</p>
<p>Imagine that instead of having to strip all script tags, content could just be enveloped in a -firewall- (or whatever) tag that prevented all script execution within it. What an easier place the world would be.</p>
<p>There is a half-cocked solution tot this at the moment which is putting content in an iframe from a different domain. As you make clear in the article above though, the problem with this is that you cannot then modify the content of  that iframe from the parent. </p>
<p>What we could really do with is some sort of asymmetric script access. I&#8217;m glad I&#8217;m not the one that&#8217;s got to figure out how to implement it though!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abe</title>
		<link>http://ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain/comment-page-1#comment-1710</link>
		<dc:creator>Abe</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain#comment-1710</guid>
		<description>Peter,

I don&#039;t believe the technique described here opens any new security holes. It doesn&#039;t enable XHR between any two random sites. Both sites have to be in the same domain, and they have to be explicitly cooperating with each other by serving up complementary code.</description>
		<content:encoded><![CDATA[<p>Peter,</p>
<p>I don&#8217;t believe the technique described here opens any new security holes. It doesn&#8217;t enable XHR between any two random sites. Both sites have to be in the same domain, and they have to be explicitly cooperating with each other by serving up complementary code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abe</title>
		<link>http://ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain/comment-page-1#comment-1711</link>
		<dc:creator>Abe</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain#comment-1711</guid>
		<description>I just posted an updated version of this code that works in Firefox 1.5 without any hacks at all.</description>
		<content:encoded><![CDATA[<p>I just posted an updated version of this code that works in Firefox 1.5 without any hacks at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Nixey</title>
		<link>http://ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain/comment-page-1#comment-1712</link>
		<dc:creator>Peter Nixey</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain#comment-1712</guid>
		<description>Abe,

You&#039;re right of course and to be honest I didn&#039;t catch the fact that they both needed to be specifically communication which does rather change things.

Although it wasn&#039;t meant to be an attack on your technique, I still stand by my original point though which is that cross domain requests carry great dangers. Techniques like arbitrary redirection on the server leave a web application far more vulnerable to attack. 

Nonetheless I am very much in favour of having some sort of trusted domains. Web services are great but when they all have to use one domain as a proxy they can become somewhat arduous.

Peter</description>
		<content:encoded><![CDATA[<p>Abe,</p>
<p>You&#8217;re right of course and to be honest I didn&#8217;t catch the fact that they both needed to be specifically communication which does rather change things.</p>
<p>Although it wasn&#8217;t meant to be an attack on your technique, I still stand by my original point though which is that cross domain requests carry great dangers. Techniques like arbitrary redirection on the server leave a web application far more vulnerable to attack. </p>
<p>Nonetheless I am very much in favour of having some sort of trusted domains. Web services are great but when they all have to use one domain as a proxy they can become somewhat arduous.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: l.m.orchard</title>
		<link>http://ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain/comment-page-1#comment-1713</link>
		<dc:creator>l.m.orchard</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain#comment-1713</guid>
		<description>I sort of wish there was something akin to Flash&#039;s crossdomain.xml for JavaScript.  There really are times when I want to make cross-site requestsâ€”ie. between vendors&#039; servers where a site&#039;s hosted on our servers and one vendor offers JS-powered metric events and another offers another service
</description>
		<content:encoded><![CDATA[<p>I sort of wish there was something akin to Flash&#8217;s crossdomain.xml for JavaScript.  There really are times when I want to make cross-site requestsâ€”ie. between vendors&#8217; servers where a site&#8217;s hosted on our servers and one vendor offers JS-powered metric events and another offers another service</p>
]]></content:encoded>
	</item>
</channel>
</rss>

