<?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>Rowan &#187; ajax</title>
	<atom:link href="http://rowan.ijuru.com/tag/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://rowan.ijuru.com</link>
	<description>Trying to make sense of it all</description>
	<lastBuildDate>Sun, 05 Oct 2008 15:46:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>AJAX across domains</title>
		<link>http://rowan.ijuru.com/2008/09/06/ajax-across-domains/</link>
		<comments>http://rowan.ijuru.com/2008/09/06/ajax-across-domains/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 19:56:42 +0000</pubDate>
		<dc:creator>Rowan</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://rowan.ijuru.com/?p=227</guid>
		<description><![CDATA[Another problem I ran into in the course of my recent development of a PHP newsletter tool (Gutuma), was the restriction on AJAX requests to the same domain as the host page. I&#8217;ve developed some AJAX gadgets which can be placed on a user&#8217;s site and will send subscription requests to the newsletter tool&#8230; which [...]]]></description>
			<content:encoded><![CDATA[<p>Another problem I ran into in the course of my recent development of a PHP newsletter tool (<a href="http://ijuru.com/gutuma/">Gutuma</a>), was the restriction on AJAX requests to the same domain as the host page. I&#8217;ve developed some AJAX gadgets which can be placed on a user&#8217;s site and will send subscription requests to the newsletter tool&#8230; which might be hosted on a different domain.</p>
<p>If you&#8217;ve come across an &#8220;Access to restricted URI denied&#8221; error then you&#8217;re probably having the same problem. The solution is to use a proxy on the domain where the AJAX controls are hosted. This proxy receives the HTTP requests from the AJAX controls and can forward them on to the other domain.</p>
<p>For an example of how to do this, you can check out <a href="http://ijuru.com/gutuma/files/guproxy.zip">guproxy.php</a> which is my simple single file PHP script for forwarding AJAX requests (from the SACK AJAX library) to the AJAX interface of Gutuma. As a security precaution it limits forwarded requests based on the destination url, and the filters the POST variables to those used by Gutuma.  Other solutions I&#8217;ve seen don&#8217;t do this and thus leave your proxy script open to abuse.</p>
]]></content:encoded>
			<wfw:commentRss>http://rowan.ijuru.com/2008/09/06/ajax-across-domains/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
