<?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: Is there anyway for WMSLayer to not being required proxy or CORS enabled? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-anyway-for-wmslayer-to-not-being-required/m-p/364254#M33775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to the API:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif;"&gt;The default behavior of a WMSLayer is to execute a WMS GetCapabilities request, which requires using a proxy page. See the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jshelp/ags_proxy.html" style="color: #00629b; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif;"&gt;Using the proxy page&lt;/A&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif;"&gt; help topic for more details. &lt;STRONG&gt;An alternate approach is to pass a resourceInfo object into the constructor which does not require a GetCapabilities request. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/wmslayer-amd.html" title="https://developers.arcgis.com/javascript/jsapi/wmslayer-amd.html"&gt;WMSLayer | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Nov 2015 19:00:13 GMT</pubDate>
    <dc:creator>ChrisSmith7</dc:creator>
    <dc:date>2015-11-04T19:00:13Z</dc:date>
    <item>
      <title>Is there anyway for WMSLayer to not being required proxy or CORS enabled?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-anyway-for-wmslayer-to-not-being-required/m-p/364253#M33774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm currently trying to add WMSLayer to my map. I follow this example and it works well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;var layer = new Layer("&lt;SPAN style="font-family: 'Tahoma',sans-serif;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fgo-tiles1.gistda.or.th%2Fmapproxy%2Fservice" rel="nofollow" target="_blank"&gt;http://go-tiles1.gistda.or.th/mapproxy/service&lt;/A&gt;&lt;/SPAN&gt;", { id : "MY_WMS_LAYER" });&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;map.addLayer(layer);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this one requires me to use proxy page. Is there any way that allow me to not use proxy page when creating WMSLayer? I try to add use CORS enabled feature by adding this below code but it is also not working too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;CODE&gt;esri.config.defaults.io.alwaysUseProxy = false;&lt;BR /&gt;esri.config.defaults.io.corsEnabledServers.push("go-tiles1.gistda.or.th");&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 08:39:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-anyway-for-wmslayer-to-not-being-required/m-p/364253#M33774</guid>
      <dc:creator>WoraminSattayatharn1</dc:creator>
      <dc:date>2015-11-04T08:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is there anyway for WMSLayer to not being required proxy or CORS enabled?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-anyway-for-wmslayer-to-not-being-required/m-p/364254#M33775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to the API:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif;"&gt;The default behavior of a WMSLayer is to execute a WMS GetCapabilities request, which requires using a proxy page. See the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jshelp/ags_proxy.html" style="color: #00629b; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif;"&gt;Using the proxy page&lt;/A&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif;"&gt; help topic for more details. &lt;STRONG&gt;An alternate approach is to pass a resourceInfo object into the constructor which does not require a GetCapabilities request. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/wmslayer-amd.html" title="https://developers.arcgis.com/javascript/jsapi/wmslayer-amd.html"&gt;WMSLayer | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 19:00:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-anyway-for-wmslayer-to-not-being-required/m-p/364254#M33775</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2015-11-04T19:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is there anyway for WMSLayer to not being required proxy or CORS enabled?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-anyway-for-wmslayer-to-not-being-required/m-p/364255#M33776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the late response. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the explanation. I will tell my client about this &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 07:08:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-anyway-for-wmslayer-to-not-being-required/m-p/364255#M33776</guid>
      <dc:creator>WoraminSattayatharn1</dc:creator>
      <dc:date>2015-11-10T07:08:07Z</dc:date>
    </item>
  </channel>
</rss>

