<?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: CORS error on any endpoint in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/CORS-error-on-any-endpoint/m-p/595676#M2589</link>
    <description>&lt;P&gt;It looks like our messages just crossed. I'm glad to hear you already sorted this out, and thanks for the feedback!&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2022 20:32:03 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2022-05-06T20:32:03Z</dc:date>
    <item>
      <title>CORS error on any endpoint</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/CORS-error-on-any-endpoint/m-p/595655#M2586</link>
      <description>&lt;P&gt;After successful authorization and getting the token I try to test it by fetching basic '/user' endpoint and I always get CORS error. Chrome Browser.&lt;/P&gt;&lt;P&gt;1) with preflish request:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.png" style="width: 800px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/29271i841AF6EAD21E9C5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic1.png" alt="pic1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic2.png" style="width: 720px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/29272iBEE67739D8C52CBD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic2.png" alt="pic2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2) Without preflight request:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic4.png" style="width: 708px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/29273i9A13B64BBFDE2DBF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic4.png" alt="pic4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong, please help!&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 19:11:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/CORS-error-on-any-endpoint/m-p/595655#M2586</guid>
      <dc:creator>Anton P</dc:creator>
      <dc:date>2022-05-06T19:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: CORS error on any endpoint</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/CORS-error-on-any-endpoint/m-p/595672#M2587</link>
      <description>&lt;P&gt;OK, I figured that out. Silly mistake. Appears that '&lt;A href="https://api.dropboxapi.com/2/check/user'" target="_blank" rel="noopener"&gt;api.dropboxapi.com/2/check/user' &lt;/A&gt;&lt;/P&gt;&lt;P&gt;is a POST method while I was sending a GET request. The mistake would be avoided if the documentation stated that it's a POST message instead of just specifying that in a curl example which I haven't looked at.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 20:31:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/CORS-error-on-any-endpoint/m-p/595672#M2587</guid>
      <dc:creator>Anton P</dc:creator>
      <dc:date>2022-05-06T20:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: CORS error on any endpoint</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/CORS-error-on-any-endpoint/m-p/595673#M2588</link>
      <description>&lt;P&gt;Can you share the full error output for reference?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at the screenshots though, I do see two things that should be corrected:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;You should &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#formats" target="_blank"&gt;use POST instead of GET&lt;/A&gt;.&lt;/LI&gt;
&lt;LI&gt;The &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#check-user" target="_self"&gt;/2/check/user&lt;/A&gt; endpoint is an &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#rpc-endpoints" target="_blank"&gt;RPC-style&lt;/A&gt; endpoint, so you should supply the API parameter ("query", in this case) in JSON in the request body, not as a URL parameter&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 06 May 2022 20:31:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/CORS-error-on-any-endpoint/m-p/595673#M2588</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-05-06T20:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: CORS error on any endpoint</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/CORS-error-on-any-endpoint/m-p/595676#M2589</link>
      <description>&lt;P&gt;It looks like our messages just crossed. I'm glad to hear you already sorted this out, and thanks for the feedback!&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 20:32:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/CORS-error-on-any-endpoint/m-p/595676#M2589</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-05-06T20:32:03Z</dc:date>
    </item>
  </channel>
</rss>

