<?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: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access. in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/no-access-control-allow-origin-header-is-present/m-p/531509#M628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Hmm.. I can't really tell you what might be going wrong. I can tell you that I have several RESTful .net 4.0 web service that work fine for me so it is not just a .net 4.0 thing.&lt;/P&gt;&lt;P&gt;Do you have allowedReferers as * in your proxy.config?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Mar 2017 03:59:33 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2017-03-07T03:59:33Z</dc:date>
    <item>
      <title>No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/no-access-control-allow-origin-header-is-present/m-p/531506#M625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calling from javascript in a WebApp Application a rest web service using json,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; requestHandle = esriRequest({&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"url"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;: url,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"handleAs"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"json"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}, {&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; useProxy: &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; usePost: &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; disableIdentityLookup: &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;// requestHandle.then(this.requestSucceeded, this.requestFailed);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;requestHandle.then(&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; lang.hitch(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; (response, io) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I am getting the following error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost" rel="nofollow" target="_blank"&gt;http://localhost&lt;/A&gt;&lt;SPAN&gt;' is therefore not allowed access.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this code was working until I upgrade the&amp;nbsp;asp.net application from framework&amp;nbsp;&amp;nbsp; .Net Framework 2&amp;nbsp; to .Net Framework 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 21:17:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/no-access-control-allow-origin-header-is-present/m-p/531506#M625</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2017-03-06T21:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/no-access-control-allow-origin-header-is-present/m-p/531507#M626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I almost never use localhost because of these type situations. Use your machine name and make sure your machine name is setup in your proxy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 21:21:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/no-access-control-allow-origin-header-is-present/m-p/531507#M626</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-03-06T21:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/no-access-control-allow-origin-header-is-present/m-p/531508#M627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using tau machine name, and the name of the proxy. this code ran in .Net framework 2.0 but after upgrading the project to .Net framework 4.0 I have 2 issues, the call to the rest web service does not work and visual store does not stop at the point on debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 22:53:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/no-access-control-allow-origin-header-is-present/m-p/531508#M627</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2017-03-06T22:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/no-access-control-allow-origin-header-is-present/m-p/531509#M628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Hmm.. I can't really tell you what might be going wrong. I can tell you that I have several RESTful .net 4.0 web service that work fine for me so it is not just a .net 4.0 thing.&lt;/P&gt;&lt;P&gt;Do you have allowedReferers as * in your proxy.config?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 03:59:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/no-access-control-allow-origin-header-is-present/m-p/531509#M628</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-03-07T03:59:33Z</dc:date>
    </item>
  </channel>
</rss>

