<?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: How to Configure Proxy in Client page ? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-configure-proxy-in-client-page/m-p/8117#M758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sivaram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The url prefix used in your urlUtils urlPrefix need to have an identical prefix (including protocol) as what you are using in your proxy.config serverUrl and what you use in your FeatureLayer url.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;urlPrefix: &lt;A class="unlinked"&gt;http://myserver.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;proxy.config serverUrl:&amp;nbsp;&lt;A class="unlinked"&gt;http://myserver.com&lt;/A&gt;&amp;nbsp;matchAll='true'&lt;/P&gt;&lt;P&gt;FeatureLayer url:&amp;nbsp;&lt;A class="unlinked"&gt;http://myserver.com/arcgis/rest/services&lt;/A&gt;/myservice/0&lt;/P&gt;&lt;P&gt;Notice. that the urlPrefix and serverUrl is less specific so that every service from myserver.com will be covered.&lt;/P&gt;&lt;P&gt;Also notice each url is using the same http protocol if you are using https then all need to have that same https protocol in the url.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2018 15:23:22 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-03-05T15:23:22Z</dc:date>
    <item>
      <title>How to Configure Proxy in Client page ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-configure-proxy-in-client-page/m-p/8116#M757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are trying to access the mapservice through proxy server , because we do not want expose mapservice url to the end user.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We have added this urlutil proxy in "html file"&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/398044_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The proxy.config file will have the below configuration.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/398099_pastedImage_2.png" style="width: 620px; height: 78px;" /&gt;&lt;/P&gt;&lt;P&gt;Now I want to add mapservice URL (from proxy) to my application&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/398100_pastedImage_3.png" style="width: 620px; height: 25px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2018 13:40:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-configure-proxy-in-client-page/m-p/8116#M757</guid>
      <dc:creator>SivaramKrishnan2</dc:creator>
      <dc:date>2018-03-05T13:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to Configure Proxy in Client page ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-configure-proxy-in-client-page/m-p/8117#M758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sivaram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The url prefix used in your urlUtils urlPrefix need to have an identical prefix (including protocol) as what you are using in your proxy.config serverUrl and what you use in your FeatureLayer url.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;urlPrefix: &lt;A class="unlinked"&gt;http://myserver.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;proxy.config serverUrl:&amp;nbsp;&lt;A class="unlinked"&gt;http://myserver.com&lt;/A&gt;&amp;nbsp;matchAll='true'&lt;/P&gt;&lt;P&gt;FeatureLayer url:&amp;nbsp;&lt;A class="unlinked"&gt;http://myserver.com/arcgis/rest/services&lt;/A&gt;/myservice/0&lt;/P&gt;&lt;P&gt;Notice. that the urlPrefix and serverUrl is less specific so that every service from myserver.com will be covered.&lt;/P&gt;&lt;P&gt;Also notice each url is using the same http protocol if you are using https then all need to have that same https protocol in the url.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2018 15:23:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-configure-proxy-in-client-page/m-p/8117#M758</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-03-05T15:23:22Z</dc:date>
    </item>
  </channel>
</rss>

