<?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: JSONP and The Same Origin Policy</title>
	<atom:link href="http://www.zackgrossbart.com/hackito/jsonp-sop/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zackgrossbart.com/hackito/jsonp-sop/</link>
	<description></description>
	<lastBuildDate>Thu, 18 Mar 2010 21:13:15 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Zack Grossbart</title>
		<link>http://www.zackgrossbart.com/hackito/jsonp-sop/#comment-9179</link>
		<dc:creator>Zack Grossbart</dc:creator>
		<pubDate>Fri, 22 Jan 2010 00:51:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.zackgrossbart.com/hackito/?p=101#comment-9179</guid>
		<description>All REST requests are just HTTP requests.  When you make an HTTP request from a browser it is an AJAX request.  AJAX request are governed by the &lt;a href=&quot;http://en.wikipedia.org/wiki/Same_origin_policy&quot; rel=&quot;nofollow&quot;&gt;same origin policy&lt;/a&gt; which prevents you from calling to a different web server from inside JavaScript.  

JSONP is a limited type of AJAX request that can get around the same origin policy, but it doesn&#039;t support the full implementation of HTTP that REST needs.  If you are calling REST from JavaScript you are limited to calling the server that served your JavaScript.</description>
		<content:encoded><![CDATA[<p>All REST requests are just HTTP requests.  When you make an HTTP request from a browser it is an AJAX request.  AJAX request are governed by the <a href="http://en.wikipedia.org/wiki/Same_origin_policy" rel="nofollow">same origin policy</a> which prevents you from calling to a different web server from inside JavaScript.  </p>
<p>JSONP is a limited type of AJAX request that can get around the same origin policy, but it doesn&#8217;t support the full implementation of HTTP that REST needs.  If you are calling REST from JavaScript you are limited to calling the server that served your JavaScript.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Silva</title>
		<link>http://www.zackgrossbart.com/hackito/jsonp-sop/#comment-9178</link>
		<dc:creator>Daniel Silva</dc:creator>
		<pubDate>Fri, 22 Jan 2010 00:39:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.zackgrossbart.com/hackito/?p=101#comment-9178</guid>
		<description>But Can you explain me why REST-based APIs are affected by Same Origin Policy? 
I just make a request to one server, or not?</description>
		<content:encoded><![CDATA[<p>But Can you explain me why REST-based APIs are affected by Same Origin Policy?<br />
I just make a request to one server, or not?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zack Grossbart</title>
		<link>http://www.zackgrossbart.com/hackito/jsonp-sop/#comment-9174</link>
		<dc:creator>Zack Grossbart</dc:creator>
		<pubDate>Thu, 21 Jan 2010 22:11:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.zackgrossbart.com/hackito/?p=101#comment-9174</guid>
		<description>Hello Daniel,

It is difficult for me to debug your issue since I&#039;m not working on your code, but I can give you a few guesses.  If the authentication process is using standard HTML then it doesn&#039;t have anything to do with your JSONP.  

The real issue with REST and JSONP is that JSONP only supports GET and REST requires POST, PUT, and DELETE at a minimum.</description>
		<content:encoded><![CDATA[<p>Hello Daniel,</p>
<p>It is difficult for me to debug your issue since I&#8217;m not working on your code, but I can give you a few guesses.  If the authentication process is using standard HTML then it doesn&#8217;t have anything to do with your JSONP.  </p>
<p>The real issue with REST and JSONP is that JSONP only supports GET and REST requires POST, PUT, and DELETE at a minimum.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Silva</title>
		<link>http://www.zackgrossbart.com/hackito/jsonp-sop/#comment-9173</link>
		<dc:creator>Daniel Silva</dc:creator>
		<pubDate>Thu, 21 Jan 2010 21:23:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.zackgrossbart.com/hackito/?p=101#comment-9173</guid>
		<description>I&#039;m developing a twitter app in JS and I&#039;m getting a same origin policy problem when trying to authenticate, it used to happen with all requests but after changing the datatype from json to jsonp the problem was genneraly solved across the application, except on the authentication process (it&#039;s not json but html). What I find weird is that all the requests are made to the same server, so I don&#039;t really get what is the issue here. The twitter uses a REST API, but once more I don&#039;t really get what&#039;s the specific problem of calling on a REST API in JS.

If you could enlighten me I would be very thankful,

Daniel Silva</description>
		<content:encoded><![CDATA[<p>I&#8217;m developing a twitter app in JS and I&#8217;m getting a same origin policy problem when trying to authenticate, it used to happen with all requests but after changing the datatype from json to jsonp the problem was genneraly solved across the application, except on the authentication process (it&#8217;s not json but html). What I find weird is that all the requests are made to the same server, so I don&#8217;t really get what is the issue here. The twitter uses a REST API, but once more I don&#8217;t really get what&#8217;s the specific problem of calling on a REST API in JS.</p>
<p>If you could enlighten me I would be very thankful,</p>
<p>Daniel Silva</p>
]]></content:encoded>
	</item>
</channel>
</rss>
