<?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 OPTIONS https://api.dropboxapi.com/2/files/list_folder 400 (Bad Request) in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OPTIONS-https-api-dropboxapi-com-2-files-list-folder-400-Bad/m-p/208721#M10313</link>
    <description>&lt;P&gt;I am using typescript to get a list of folder contents from Dropbox account, I keep getting a 400 Bad Request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a plunker where you can see my code&amp;nbsp;&lt;A href="https://plnkr.co/edit/8f0qZm02qkxYhxig31PT?p=preview" target="_blank"&gt;https://plnkr.co/edit/8f0qZm02qkxYhxig31PT?p=preview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you look in the browser developer tools you will see the error. What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:25:24 GMT</pubDate>
    <dc:creator>JasN</dc:creator>
    <dc:date>2019-05-29T09:25:24Z</dc:date>
    <item>
      <title>OPTIONS https://api.dropboxapi.com/2/files/list_folder 400 (Bad Request)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OPTIONS-https-api-dropboxapi-com-2-files-list-folder-400-Bad/m-p/208721#M10313</link>
      <description>&lt;P&gt;I am using typescript to get a list of folder contents from Dropbox account, I keep getting a 400 Bad Request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a plunker where you can see my code&amp;nbsp;&lt;A href="https://plnkr.co/edit/8f0qZm02qkxYhxig31PT?p=preview" target="_blank"&gt;https://plnkr.co/edit/8f0qZm02qkxYhxig31PT?p=preview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you look in the browser developer tools you will see the error. What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:25:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OPTIONS-https-api-dropboxapi-com-2-files-list-folder-400-Bad/m-p/208721#M10313</guid>
      <dc:creator>JasN</dc:creator>
      <dc:date>2019-05-29T09:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: OPTIONS https://api.dropboxapi.com/2/files/list_folder 400 (Bad Request)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OPTIONS-https-api-dropboxapi-com-2-files-list-folder-400-Bad/m-p/208780#M10322</link>
      <description>&lt;P&gt;Looking at the response body for the 400, the error is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;CORS preflight failed.  The following HTTP headers are not allowed: "bearer".&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Bearer" isn't the header though. The header should be "Authorization", with "Bearer" as part of the value. That is, instead of this line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;let headers = new Headers({ 'Bearer': 'my_oauth2_token' });&lt;/PRE&gt;
&lt;P&gt;it should be:&lt;/P&gt;
&lt;PRE&gt;let headers = new Headers({ 'Authorization': 'Bearer my_oauth2_token' });&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 19:19:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OPTIONS-https-api-dropboxapi-com-2-files-list-folder-400-Bad/m-p/208780#M10322</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-27T19:19:36Z</dc:date>
    </item>
  </channel>
</rss>

