<?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>thread Re: CORS Error when using NodeJS Connect V2 API for OAuth2 Access in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/CORS-Error-when-using-NodeJS-Connect-V2-API-for-OAuth2-Access/m-p/202021#M93372</link>
    <description>&lt;P&gt;It looks like you were able to figure this one out over in &lt;A href="https://github.com/square/connect-api-examples/issues/203" target="_blank"&gt;GitHub&lt;/A&gt;! &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Be sure to let us know here if you've got any outlying questions we can hep with, &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/317143"&gt;@SMPLInc&lt;/a&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Sep 2020 01:14:31 GMT</pubDate>
    <dc:creator>Valentina</dc:creator>
    <dc:date>2020-09-11T01:14:31Z</dc:date>
    <item>
      <title>CORS Error when using NodeJS Connect V2 API for OAuth2 Access</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/CORS-Error-when-using-NodeJS-Connect-V2-API-for-OAuth2-Access/m-p/201160#M93371</link>
      <description>&lt;P&gt;Following the guide posted on Square's Developer documentation. I can run the Node OAuth 2 sample from here: (&lt;A href="https://github.com/square/connect-api-examples/tree/master/connect-examples/oauth/node" target="_blank" rel="noopener"&gt;https://github.com/square/connect-api-examples/tree/master/connect-examples/oauth/node&lt;/A&gt;) just fine locally with the Sandbox. But when I try to run a similar setup in a local React app, the obtainToken method from the square-connect Node library throws the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-09-08 at 2.48.07 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.squareup.com/t5/image/serverpage/image-id/7716i55A2E08707F54A46/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-09-08 at 2.48.07 AM.png" alt="Screen Shot 2020-09-08 at 2.48.07 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure how to overcome the CORS policy here. Could I get some assistance please?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 07:00:01 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/CORS-Error-when-using-NodeJS-Connect-V2-API-for-OAuth2-Access/m-p/201160#M93371</guid>
      <dc:creator>SMPLInc</dc:creator>
      <dc:date>2020-09-08T07:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: CORS Error when using NodeJS Connect V2 API for OAuth2 Access</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/CORS-Error-when-using-NodeJS-Connect-V2-API-for-OAuth2-Access/m-p/202021#M93372</link>
      <description>&lt;P&gt;It looks like you were able to figure this one out over in &lt;A href="https://github.com/square/connect-api-examples/issues/203" target="_blank"&gt;GitHub&lt;/A&gt;! &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Be sure to let us know here if you've got any outlying questions we can hep with, &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/317143"&gt;@SMPLInc&lt;/a&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 01:14:31 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/CORS-Error-when-using-NodeJS-Connect-V2-API-for-OAuth2-Access/m-p/202021#M93372</guid>
      <dc:creator>Valentina</dc:creator>
      <dc:date>2020-09-11T01:14:31Z</dc:date>
    </item>
  </channel>
</rss>

