<?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 add a secure wms as basemap in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-a-secure-wms-as-basemap/m-p/163259#M5236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have build a map application with Arcgis flex 3.2 and right now im trying to add a wms layer as a basemap in my application&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In Flexbuilder everything works fine when I run it. But when I build it and move the release folder into my application server i got &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;error messenger as below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;SecurityError: Error #2170: Security sandbox violation: http://apparcgis01/karta/e/index.swf cannot send HTTP headers to http://maps.lantmateriet.se/ortofoto-ar/wms/v1?VERSION=1%2E3%2E0&amp;amp;SERVICE=WMS&amp;amp;REQUEST=GetCapabilities.
 at MethodInfo-3067()
 at mx.rpc::AsyncResponder/fault()
 at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyFault()
 at mx.rpc.events::FaultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()
 at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
 at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
 at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
 at mx.rpc::Responder/fault()
 at mx.rpc::AsyncRequest/fault()
 at DirectHTTPMessageResponder/securityErrorHandler()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at flash.net::URLLoader/redirectEvent()&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in config.xml the code is as below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;!-- Backgrunskartan --&amp;gt;
&amp;nbsp; &amp;lt;basemaps&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;layer label="Bakgrundkarta" type="tiled" visible="true" alpha="1"
&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://apparcgis01.kumla.internal:6080/arcgis/rest/services/baskarta/Karta/MapServer"/&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;layer label="Flygfoto 2013 Kumla Tätort"&amp;nbsp; type="tiled" visible="false" alpha="1"&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://apparcgis01.kumla.internal:6080/arcgis/rest/services/baskarta/Flygbilder/MapServer"/&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;layer label="Flygfoto 2010 kumla kommun" type="wms" username="xxx" password="xxx"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://maps.lantmateriet.se/ortofoto-ar/wms/v1?" version="1.1.0" visible="false"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wkid="3006" visiblelayers="orto_2010"/&amp;gt; 
&amp;nbsp; &amp;lt;/basemaps&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in my IIS, root, crosssdomain.xml the code is as below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;?xml version="1.0" ?&amp;gt;
&amp;lt;cross-domain-policy&amp;gt;
&amp;nbsp; &amp;lt;allow-access-from domain="*"/&amp;gt;
&amp;nbsp; &amp;lt;site-control permitted-cross-domain-policies="all"/&amp;gt;
&amp;nbsp; &amp;lt;allow-http-request-headers-from domain="*" headers="*"/&amp;gt;
&amp;lt;/cross-domain-policy&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know what is wrong with my application?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Nov 2013 13:35:45 GMT</pubDate>
    <dc:creator>antoniodang</dc:creator>
    <dc:date>2013-11-22T13:35:45Z</dc:date>
    <item>
      <title>add a secure wms as basemap</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-a-secure-wms-as-basemap/m-p/163259#M5236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have build a map application with Arcgis flex 3.2 and right now im trying to add a wms layer as a basemap in my application&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In Flexbuilder everything works fine when I run it. But when I build it and move the release folder into my application server i got &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;error messenger as below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;SecurityError: Error #2170: Security sandbox violation: http://apparcgis01/karta/e/index.swf cannot send HTTP headers to http://maps.lantmateriet.se/ortofoto-ar/wms/v1?VERSION=1%2E3%2E0&amp;amp;SERVICE=WMS&amp;amp;REQUEST=GetCapabilities.
 at MethodInfo-3067()
 at mx.rpc::AsyncResponder/fault()
 at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyFault()
 at mx.rpc.events::FaultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()
 at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
 at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
 at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
 at mx.rpc::Responder/fault()
 at mx.rpc::AsyncRequest/fault()
 at DirectHTTPMessageResponder/securityErrorHandler()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at flash.net::URLLoader/redirectEvent()&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in config.xml the code is as below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;!-- Backgrunskartan --&amp;gt;
&amp;nbsp; &amp;lt;basemaps&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;layer label="Bakgrundkarta" type="tiled" visible="true" alpha="1"
&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://apparcgis01.kumla.internal:6080/arcgis/rest/services/baskarta/Karta/MapServer"/&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;layer label="Flygfoto 2013 Kumla Tätort"&amp;nbsp; type="tiled" visible="false" alpha="1"&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://apparcgis01.kumla.internal:6080/arcgis/rest/services/baskarta/Flygbilder/MapServer"/&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;layer label="Flygfoto 2010 kumla kommun" type="wms" username="xxx" password="xxx"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://maps.lantmateriet.se/ortofoto-ar/wms/v1?" version="1.1.0" visible="false"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wkid="3006" visiblelayers="orto_2010"/&amp;gt; 
&amp;nbsp; &amp;lt;/basemaps&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in my IIS, root, crosssdomain.xml the code is as below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;?xml version="1.0" ?&amp;gt;
&amp;lt;cross-domain-policy&amp;gt;
&amp;nbsp; &amp;lt;allow-access-from domain="*"/&amp;gt;
&amp;nbsp; &amp;lt;site-control permitted-cross-domain-policies="all"/&amp;gt;
&amp;nbsp; &amp;lt;allow-http-request-headers-from domain="*" headers="*"/&amp;gt;
&amp;lt;/cross-domain-policy&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know what is wrong with my application?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 13:35:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-a-secure-wms-as-basemap/m-p/163259#M5236</guid>
      <dc:creator>antoniodang</dc:creator>
      <dc:date>2013-11-22T13:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: add a secure wms as basemap</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-a-secure-wms-as-basemap/m-p/163260#M5237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Antonio,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the error stems from the cross-domain issue. "Security error accessing url" faultCode="Channel.Security.Error" is thrown when the web service to be accessed is not of the same protocol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found this thread related to the error:&lt;/SPAN&gt;&lt;A href="http://forums.adobe.com/thread/223999"&gt;http://forums.adobe.com/thread/223999&lt;/A&gt;&lt;SPAN&gt;, they recommend to replace crossdomain.xml &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0"?&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd"&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;cross-domain-policy&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;site-control permitted-cross-domain-policies="all"/&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;allow-access-from domain="*" to-ports="*" /&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;allow-http-request-headers-from domain="*" headers="*"/&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/cross-domain-policy&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, there is another old thread in esri forum:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=294393"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=294393&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this can help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 16:12:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-a-secure-wms-as-basemap/m-p/163260#M5237</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2013-11-22T16:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: add a secure wms as basemap</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-a-secure-wms-as-basemap/m-p/163261#M5238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you able to update this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://maps.lantmateriet.se/crossdomain.xml"&gt;http://maps.lantmateriet.se/crossdomain.xml&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 19:53:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-a-secure-wms-as-basemap/m-p/163261#M5238</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2013-11-26T19:53:56Z</dc:date>
    </item>
  </channel>
</rss>

