<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: crossdomain.xml in a different directory in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/crossdomain-xml-in-a-different-directory/m-p/450648#M10427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is not required to be in the root of the web server. That's just where it looks for it by default. When the app initializes, the developer can make a call to Security.loadPolicyFile().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://livedocs.adobe.com/flex/3/langref/flash/system/Security.html#loadPolicyFile(" rel="nofollow noopener noreferrer" target="_blank"&gt;http://livedocs.adobe.com/flex/3/langref/flash/system/Security.html#loadPolicyFile(&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll still need to have a small crossdomain.xml file in the root of the web server that says it's OK to use policy files from other places on your server. This is called the master policy file. It would look like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;?xml version="1.0"?&amp;gt; 
&amp;lt;!DOCTYPE cross-domain-policy SYSTEM 
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"&amp;gt; 
&amp;lt;cross-domain-policy&amp;gt; 
&amp;nbsp;&amp;nbsp; &amp;lt;site-control permitted-cross-domain-policies="all"/&amp;gt; 
&amp;lt;/cross-domain-policy&amp;gt;&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can get more info on this at (page 7 and 11 of the pdf):&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 20:07:17 GMT</pubDate>
    <dc:creator>DasaPaddock</dc:creator>
    <dc:date>2021-12-11T20:07:17Z</dc:date>
    <item>
      <title>crossdomain.xml in a different directory</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/crossdomain-xml-in-a-different-directory/m-p/450647#M10426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm the server admin, not the developer.&amp;nbsp; I've had a developer request I put the crossdomain.xml file on my ArcGIS server according to ESRI's instructions so he can access our services via FLEX.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For security reasons, I will not put this in the root of the web server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.adobe.com/devnet/flashplayer/articles/cross_domain_policy.html"&gt;Adobe's documentation&lt;/A&gt;&lt;SPAN&gt; says it can be placed in individual virtual directories (IIS).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I correct in assuming &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/flex/help/index.html#deploy_application.htm#"&gt;ESRI's implementation&lt;/A&gt;&lt;SPAN&gt; of this &lt;/SPAN&gt;&lt;STRONG&gt;requires &lt;/STRONG&gt;&lt;SPAN&gt;it to be in the root of the server?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, why?&amp;nbsp; What possible reason could there be for exposing an entire site?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 17:57:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/crossdomain-xml-in-a-different-directory/m-p/450647#M10426</guid>
      <dc:creator>ScottNoldy</dc:creator>
      <dc:date>2010-05-12T17:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: crossdomain.xml in a different directory</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/crossdomain-xml-in-a-different-directory/m-p/450648#M10427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is not required to be in the root of the web server. That's just where it looks for it by default. When the app initializes, the developer can make a call to Security.loadPolicyFile().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://livedocs.adobe.com/flex/3/langref/flash/system/Security.html#loadPolicyFile(" rel="nofollow noopener noreferrer" target="_blank"&gt;http://livedocs.adobe.com/flex/3/langref/flash/system/Security.html#loadPolicyFile(&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll still need to have a small crossdomain.xml file in the root of the web server that says it's OK to use policy files from other places on your server. This is called the master policy file. It would look like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;?xml version="1.0"?&amp;gt; 
&amp;lt;!DOCTYPE cross-domain-policy SYSTEM 
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"&amp;gt; 
&amp;lt;cross-domain-policy&amp;gt; 
&amp;nbsp;&amp;nbsp; &amp;lt;site-control permitted-cross-domain-policies="all"/&amp;gt; 
&amp;lt;/cross-domain-policy&amp;gt;&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can get more info on this at (page 7 and 11 of the pdf):&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:07:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/crossdomain-xml-in-a-different-directory/m-p/450648#M10427</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2021-12-11T20:07:17Z</dc:date>
    </item>
  </channel>
</rss>

