<?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>Murtuza Topiwalla &#187; crossdomain</title>
	<atom:link href="http://www.sowebme.com/murtaza/tag/crossdomain/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sowebme.com/murtaza</link>
	<description>Blog about flash, movies, travel and more! Email me at yankeedoodles[at]hotmail[dot]com for anything you want to add!</description>
	<lastBuildDate>Wed, 13 Oct 2010 02:32:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>HTTPS with Flash</title>
		<link>http://www.sowebme.com/murtaza/2009/09/https-with-flash/</link>
		<comments>http://www.sowebme.com/murtaza/2009/09/https-with-flash/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 00:17:43 +0000</pubDate>
		<dc:creator>Murtuza</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Serverside]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[crossdomain]]></category>
		<category><![CDATA[https]]></category>

		<guid isPermaLink="false">http://www.sowebme.com/murtaza/?p=124</guid>
		<description><![CDATA[HTTPS calls from flash which do not lie on the same server.]]></description>
			<content:encoded><![CDATA[<p>Recently and a long time back, sometime in December 08 to be exact, I had the rare challenge of making HTTPS calls from a swf which did not sit on the same server. I faced quite a bunch of problems and I still do. But I do have some solutions which I have found on the internet from reliable sources, though not tried and tested, which may solve your issues should you come across this situation at any time.</p>
<p>The &#8220;allow-access-from&#8221; has an attribute called secure which very few people use.</p>
<p>Adobe says :  <strong><br />
</strong></p>
<dl>
<dt id="allow-access-from-secure"><strong>secure</strong></dt>
<dd>[HTTPS and Sockets only, optional] When false, allows an HTTPS policy file to grant access to a request coming from an HTTP source. The default for URL policy files is true, providing only HTTPS sources permission. Using false is <span style="color: #ff0000;"><strong>not recommended</strong></span>. Socket policy files  use a default of false.</dd>
</dl>
<p>So a sample would be</p>
<pre>
<pre>&lt;?xml version="1.0"?&gt;
&lt;!DOCTYPE cross-domain-policy SYSTEM
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"&gt;

&lt;cross-domain-policy&gt;
	&lt;<strong>allow-access-from</strong> <strong>domain="*.somedomain.com"</strong> <strong>secure="false"</strong>/&gt;
&lt;/cross-domain-policy&gt;</pre>
</pre>
<p>The second option which I believe will never give you any problems is using a proxy. This works even when you cannot get a crossdomain file onto the server you are feeding from.</p>
<p>A sample PHP Proxy is as follows:<br />
<code><br />
&lt;?php<br />
$dataURL = "http://www.sowebme.com/murtaza/feed/";<br />
//note that this does not follow redirects.<br />
readfile($dataURL);<br />
?><br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sowebme.com/murtaza/2009/09/https-with-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

