<?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: Error while posting data to the Square Checkout to get checkout ID in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Error-while-posting-data-to-the-Square-Checkout-to-get-checkout/m-p/38023#M94538</link>
    <description>&lt;P&gt;Like I said, you need to make the request to the checkout enpoint from the server side, not client side. It looks like you are trying to use AngularJS, which makes requests in the client. Instead you need to make the request with your server. That is why postman works, whereas your browser does not.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2017 17:02:21 GMT</pubDate>
    <dc:creator>tristansokol</dc:creator>
    <dc:date>2017-05-10T17:02:21Z</dc:date>
    <item>
      <title>Error while posting data to the Square Checkout to get checkout ID</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Error-while-posting-data-to-the-Square-Checkout-to-get-checkout/m-p/37899#M94535</link>
      <description>&lt;P&gt;ERRORS that i recieved in the console:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="console-message-anchor"&gt;&lt;SPAN class="devtools-link"&gt;=&amp;gt;angular.js:11048&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="console-message-text"&gt;OPTIONS &lt;SPAN class="devtools-link"&gt;&lt;A href="https://connect.squareup.com/v2/locations/xxxxxxxxxxxxx/checkouts" target="_blank"&gt;https://connect.squareup.com/v2/locations/xxxxxxxxxxxxx/checkouts&lt;/A&gt;&lt;/SPAN&gt; 403 (Forbidden)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="console-message-text"&gt;=&amp;gt;XMLHttpRequest cannot load &lt;A href="https://connect.squareup.com/v2/locations/" target="_blank"&gt;https://connect.squareup.com/v2/locations/&lt;/A&gt;&lt;SPAN&gt;xxxxxxxxxxxxx&lt;/SPAN&gt;/checkouts. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:9000' is therefore not allowed access. The response had HTTP status code 403.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="console-message-text"&gt;i am receiving this error while connecting Square Checkout from localhost.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 12:27:32 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Error-while-posting-data-to-the-Square-Checkout-to-get-checkout/m-p/37899#M94535</guid>
      <dc:creator>dhilipan</dc:creator>
      <dc:date>2017-05-09T12:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error while posting data to the Square Checkout to get checkout ID</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Error-while-posting-data-to-the-Square-Checkout-to-get-checkout/m-p/37970#M94536</link>
      <description>&lt;P&gt;What do you mean by connecting?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll need to use a server-side language to generate a checkout form.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 22:23:04 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Error-while-posting-data-to-the-Square-Checkout-to-get-checkout/m-p/37970#M94536</guid>
      <dc:creator>tristansokol</dc:creator>
      <dc:date>2017-05-09T22:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error while posting data to the Square Checkout to get checkout ID</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Error-while-posting-data-to-the-Square-Checkout-to-get-checkout/m-p/37992#M94537</link>
      <description>&lt;P&gt;Actually we post object to this api &lt;STRONG&gt;"&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;A href="https://connect.squareup.com/v2/locations/XXXXXXXXX/checkouts" target="_blank"&gt;https://connect.squareup.com/v2/locations/XXXXXXXXX/checkouts&lt;/A&gt;"&lt;/STRONG&gt; from our&amp;nbsp;dev browser &lt;STRONG&gt;"http://localhost:9000".&amp;nbsp;&lt;/STRONG&gt; We get error&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="console-message-anchor"&gt;&lt;SPAN class="devtools-link"&gt;=&amp;gt;angular.js:11048&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="console-message-text"&gt;OPTIONS &lt;SPAN class="devtools-link"&gt;&lt;A href="https://connect.squareup.com/v2/locations/xxxxxxxxxxxxx/checkouts" target="_blank" rel="noopener noreferrer"&gt;https://connect.squareup.com/v2/locations/xxxxxxxx&lt;WBR /&gt;xxxxx/checkouts&lt;/A&gt;&lt;/SPAN&gt; 403 (Forbidden)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="console-message-text"&gt;=&amp;gt;XMLHttpRequest cannot load &lt;A href="https://connect.squareup.com/v2/locations/" target="_blank" rel="noopener noreferrer"&gt;https://connect.squareup.com/v2/locations/&lt;/A&gt;&lt;SPAN&gt;xxxxxxxxxxxxx&lt;/SPAN&gt;/checkouts. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:9000' is therefore not allowed access. The response had HTTP status code 403.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when we tried to post object to the above api using postman application, it returns checkout ID in response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 05:25:26 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Error-while-posting-data-to-the-Square-Checkout-to-get-checkout/m-p/37992#M94537</guid>
      <dc:creator>dhilipan</dc:creator>
      <dc:date>2017-05-10T05:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error while posting data to the Square Checkout to get checkout ID</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Error-while-posting-data-to-the-Square-Checkout-to-get-checkout/m-p/38023#M94538</link>
      <description>&lt;P&gt;Like I said, you need to make the request to the checkout enpoint from the server side, not client side. It looks like you are trying to use AngularJS, which makes requests in the client. Instead you need to make the request with your server. That is why postman works, whereas your browser does not.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 17:02:21 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Error-while-posting-data-to-the-Square-Checkout-to-get-checkout/m-p/38023#M94538</guid>
      <dc:creator>tristansokol</dc:creator>
      <dc:date>2017-05-10T17:02:21Z</dc:date>
    </item>
  </channel>
</rss>

