<?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: Need steps to configure CORES for JSAPI in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-steps-to-configure-cores-for-jsapi/m-p/203864#M18901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you getting the cors error for your service?&amp;nbsp;&amp;nbsp; In order for CORS to be successful both the browser and the server must support cors. ArcGIS Server 10.1 and later support CORS out of the box.&amp;nbsp; You can check to see if your browser supports cors here: &lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://caniuse.com/#search=cors" rel="nofollow" target="_blank"&gt;http://caniuse.com/#search=cors&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Oct 2014 17:14:05 GMT</pubDate>
    <dc:creator>KellyHutchins</dc:creator>
    <dc:date>2014-10-01T17:14:05Z</dc:date>
    <item>
      <title>Need steps to configure CORES for JSAPI</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-steps-to-configure-cores-for-jsapi/m-p/203863#M18900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ESRI suit 10.1 and ArcGIS Server installed on Amazon instance. We are consuming Map services in JSAPI and while executing map, getting CROSS domain error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked &lt;A href="http://servicesbeta.esri.com/ArcGIS/rest/services"&gt;this rest&lt;/A&gt; service and wondering that no CORS error getting. (It might be version 10.0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried following things: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Used following things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; esri.config.defaults.io.corsEnabledServers.push("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://myserver.com/arcgis/rest/services" rel="nofollow" target="_blank"&gt;http://myserver.com/arcgis/rest/services&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; esri.config.defaults.io.corsEnabledServers.push("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services" rel="nofollow" target="_blank"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services&lt;/A&gt;&lt;SPAN&gt;")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Added following things in web.xml in tomcat 8.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;filter&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;filter-name&amp;gt;CorsFilter&amp;lt;/filter-name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;filter-class&amp;gt;org.apache.catalina.filters.CorsFilter&amp;lt;/filter-class&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/filter&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;filter-mapping&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;filter-name&amp;gt;CorsFilter&amp;lt;/filter-name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;url-pattern&amp;gt;/*&amp;lt;/url-pattern&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/filter-mapping&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.Searched on Google regarding this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached screen-shot so any help regarding this will be great!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 12:49:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-steps-to-configure-cores-for-jsapi/m-p/203863#M18900</guid>
      <dc:creator>SunilPalkar</dc:creator>
      <dc:date>2014-10-01T12:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need steps to configure CORES for JSAPI</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-steps-to-configure-cores-for-jsapi/m-p/203864#M18901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you getting the cors error for your service?&amp;nbsp;&amp;nbsp; In order for CORS to be successful both the browser and the server must support cors. ArcGIS Server 10.1 and later support CORS out of the box.&amp;nbsp; You can check to see if your browser supports cors here: &lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://caniuse.com/#search=cors" rel="nofollow" target="_blank"&gt;http://caniuse.com/#search=cors&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 17:14:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-steps-to-configure-cores-for-jsapi/m-p/203864#M18901</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2014-10-01T17:14:05Z</dc:date>
    </item>
  </channel>
</rss>

