<?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: Proxy in 4.0beta1 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-in-4-0beta1/m-p/170662#M15855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! I've just tried running with the v3.14 proxy code integrated, but I'm still getting a "token required" error, presumably meaning the proxy isn't being used. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the proxying is due to follow in a future beta then this isn't urgent - I'm just curious to see it in operation!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Roland.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;var map,&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; view;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;require([&lt;/P&gt;&lt;P&gt;&amp;nbsp; "esri/Map", &lt;/P&gt;&lt;P&gt;&amp;nbsp; "esri/views/SceneView", &lt;/P&gt;&lt;P&gt;&amp;nbsp; "esri/config", &lt;/P&gt;&lt;P&gt;&amp;nbsp; "esri/core/urlUtils", &lt;/P&gt;&lt;P&gt;&amp;nbsp; "esri/layers/FeatureLayer",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "dojo/domReady!"&lt;/P&gt;&lt;P&gt;&amp;nbsp; ], function(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Map, &lt;/P&gt;&lt;P&gt;&amp;nbsp; SceneView,&lt;/P&gt;&lt;P&gt;&amp;nbsp; esriConfig, &lt;/P&gt;&lt;P&gt;&amp;nbsp; urlUtils, &lt;/P&gt;&lt;P&gt;&amp;nbsp; FeatureLayer&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;) {&lt;/P&gt;&lt;P&gt;esriConfig.request.proxyUrl = "proxy/proxy.php";&lt;/P&gt;&lt;P&gt;&amp;nbsp; urlUtils.addProxyRule({&lt;/P&gt;&lt;P&gt;&amp;nbsp; urlPrefix : "{...}",&lt;/P&gt;&lt;P&gt;&amp;nbsp; proxyUrl : "proxy/proxy.php"&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;map = new Map({&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;basemap : "streets"&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;view = new SceneView({&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;container : "viewDiv",&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;map : map&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;overlay = new FeatureLayer("{...}/MapServer/0");&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;map.add(overlay);&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2015 21:53:00 GMT</pubDate>
    <dc:creator>RolandMartin</dc:creator>
    <dc:date>2015-08-06T21:53:00Z</dc:date>
    <item>
      <title>Proxy in 4.0beta1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-in-4-0beta1/m-p/170658#M15851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone figured out how to use the proxy? Right now I've got:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var map,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; view;&lt;/P&gt;&lt;P&gt;require([&lt;/P&gt;&lt;P&gt;"esri/Map", &lt;/P&gt;&lt;P&gt;"esri/views/SceneView", &lt;/P&gt;&lt;P&gt;"esri/config", &lt;/P&gt;&lt;P&gt;"esri/layers/FeatureLayer",&lt;/P&gt;&lt;P&gt;"dojo/domReady!"&lt;/P&gt;&lt;P&gt;], function(&lt;/P&gt;&lt;P&gt;Map, &lt;/P&gt;&lt;P&gt;SceneView,&lt;/P&gt;&lt;P&gt;esriConfig, &lt;/P&gt;&lt;P&gt;ArcGISDynamicLayer,&lt;/P&gt;&lt;P&gt;FeatureLayer&lt;/P&gt;&lt;P&gt;) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; esriConfig.request.proxyUrl = "proxy/proxy.php";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;map = new Map({&lt;/P&gt;&lt;P&gt;basemap : "streets"&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;view = new SceneView({&lt;/P&gt;&lt;P&gt;container : "viewDiv",&lt;/P&gt;&lt;P&gt;map : map&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;overlay = new FeatureLayer("{...}/MapServer/0");&lt;/P&gt;&lt;P&gt;map.add(overlay);&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; line-height: 1.5;"&gt;... but the proxy is being bypassed. I'm guessing I need to define which URLs get proxied somewhere, and I've played a bit with esri/request, but haven't got anywhere with that either. The only thing that works is using forceProxy=true, and that sends all requests through the proxy. Any thoughts?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 23:29:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-in-4-0beta1/m-p/170658#M15851</guid>
      <dc:creator>RolandMartin</dc:creator>
      <dc:date>2015-08-05T23:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy in 4.0beta1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-in-4-0beta1/m-p/170659#M15852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you include the URLs you want proxied in your proxy.config file? Which proxy are you using, PHP, DotNET, or JSP?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 19:00:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-in-4-0beta1/m-p/170659#M15852</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2015-08-06T19:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy in 4.0beta1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-in-4-0beta1/m-p/170660#M15853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kristian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes - it's the PHP proxy (see URL above) and I've just ported it across from a working site that uses JSAPI v3.14 (some code snippets below). I'm using the latest version of the proxy code from GitHub.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect the problem is that I'm not using the JS v4.0 proxy code correctly, but it's difficult to tell. I couldn't find an equivalent for the urlPrefix statement, which might be key here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Roland.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define([&lt;/P&gt;&lt;P&gt;'esri/urlUtils'&lt;/P&gt;&lt;P&gt;], function(&lt;/P&gt;&lt;P&gt;urlUtils&lt;/P&gt;&lt;P&gt;) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; urlUtils.addProxyRule({&lt;/P&gt;&lt;P&gt;&amp;nbsp; urlPrefix : "{...}",&lt;/P&gt;&lt;P&gt;&amp;nbsp; proxyUrl : "proxy/proxy.php"&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 20:27:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-in-4-0beta1/m-p/170660#M15853</guid>
      <dc:creator>RolandMartin</dc:creator>
      <dc:date>2015-08-06T20:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy in 4.0beta1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-in-4-0beta1/m-p/170661#M15854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should have noticed the proxy extension. Sorry about that. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the urlUtils like you do in 3.14. The import is different though: It's now "esri/core/urlUtils".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This isn't documented, which means things can change in beta2, so keep an eye out for doc updates related to this in the future betas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 20:37:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-in-4-0beta1/m-p/170661#M15854</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2015-08-06T20:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy in 4.0beta1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-in-4-0beta1/m-p/170662#M15855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! I've just tried running with the v3.14 proxy code integrated, but I'm still getting a "token required" error, presumably meaning the proxy isn't being used. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the proxying is due to follow in a future beta then this isn't urgent - I'm just curious to see it in operation!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Roland.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;var map,&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; view;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;require([&lt;/P&gt;&lt;P&gt;&amp;nbsp; "esri/Map", &lt;/P&gt;&lt;P&gt;&amp;nbsp; "esri/views/SceneView", &lt;/P&gt;&lt;P&gt;&amp;nbsp; "esri/config", &lt;/P&gt;&lt;P&gt;&amp;nbsp; "esri/core/urlUtils", &lt;/P&gt;&lt;P&gt;&amp;nbsp; "esri/layers/FeatureLayer",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "dojo/domReady!"&lt;/P&gt;&lt;P&gt;&amp;nbsp; ], function(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Map, &lt;/P&gt;&lt;P&gt;&amp;nbsp; SceneView,&lt;/P&gt;&lt;P&gt;&amp;nbsp; esriConfig, &lt;/P&gt;&lt;P&gt;&amp;nbsp; urlUtils, &lt;/P&gt;&lt;P&gt;&amp;nbsp; FeatureLayer&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;) {&lt;/P&gt;&lt;P&gt;esriConfig.request.proxyUrl = "proxy/proxy.php";&lt;/P&gt;&lt;P&gt;&amp;nbsp; urlUtils.addProxyRule({&lt;/P&gt;&lt;P&gt;&amp;nbsp; urlPrefix : "{...}",&lt;/P&gt;&lt;P&gt;&amp;nbsp; proxyUrl : "proxy/proxy.php"&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;map = new Map({&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;basemap : "streets"&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;view = new SceneView({&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;container : "viewDiv",&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;map : map&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;overlay = new FeatureLayer("{...}/MapServer/0");&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;map.add(overlay);&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 21:53:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-in-4-0beta1/m-p/170662#M15855</guid>
      <dc:creator>RolandMartin</dc:creator>
      <dc:date>2015-08-06T21:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy in 4.0beta1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-in-4-0beta1/m-p/170663#M15856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you watch the network tab and see if the request is going through the proxy or not? Also, try to proxy a non-secure resource just to see if the proxy works without passing credentials. I do not have the PHP proxy active, but I can get it to work with the DotNet proxy and a secure Feature Layer as well as a non-secured basemap request with the urlUtils.addProxyRule:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;require([&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/Map",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/config",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/request",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/core/urlUtils",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/layers/FeatureLayer",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/core/Accessor",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/domReady!"&lt;/P&gt;&lt;P&gt;&amp;nbsp; ], function (Map, esriConfig, request, urlUtils, FeatureLayer){&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;urlUtils.addProxyRule({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; urlPrefix : "sampleserver6.arcgisonline.com",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proxyUrl : "/proxy/proxy.ashx"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Noah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 23:04:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-in-4-0beta1/m-p/170663#M15856</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2015-08-07T23:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy in 4.0beta1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-in-4-0beta1/m-p/170664#M15857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Noah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this it was really helpful. It looks as though there are a few inconsistencies at this stage. Most notably, it seems that esriConfig.request.proxyUrl needs to be defined, but left as an empty string. It seems the new API treats protocols differently too - all my URLs started previously with "//" to be protocol agnostic, but the urlPrefix now needs to either define the protocol in full or ignore it altogether (i.e. start with the subdomain / domain / server URL).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code below kind of works for me... it's not actually showing anything on the map yet, but it does seem to download the data successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;Roland.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;var map,&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; view;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;require([&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; "esri/Map",&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; "esri/views/SceneView",&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; "esri/config",&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; "esri/core/urlUtils",&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; "esri/layers/FeatureLayer",&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; "dojo/domReady!"&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; ], function(&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; Map,&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; SceneView,&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; esriConfig,&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; urlUtils,&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; FeatureLayer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;) {&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;esriConfig.request.proxyUrl = "";&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; urlUtils.addProxyRule({&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; urlPrefix : "{...}",&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; proxyUrl : "proxy/proxy.php"&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;map = new Map({&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;basemap : "streets"&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;view = new SceneView({&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;container : "viewDiv",&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;map : map&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;overlay = new FeatureLayer("//{...}/MapServer/0");&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;map.add(overlay);&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 21:38:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-in-4-0beta1/m-p/170664#M15857</guid>
      <dc:creator>RolandMartin</dc:creator>
      <dc:date>2015-08-12T21:38:17Z</dc:date>
    </item>
  </channel>
</rss>

