<?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 requests involving OPTIONS preflight failing from Firefox and Safari in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/CORS-requests-involving-OPTIONS-preflight-failing-from-Firefox/m-p/582821#M27145</link>
    <description>&lt;P&gt;Thanks for the fast fix!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2022 21:10:22 GMT</pubDate>
    <dc:creator>JimRobinson</dc:creator>
    <dc:date>2022-03-10T21:10:22Z</dc:date>
    <item>
      <title>CORS requests involving OPTIONS preflight failing from Firefox and Safari</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/CORS-requests-involving-OPTIONS-preflight-failing-from-Firefox/m-p/582217#M27122</link>
      <description>&lt;P&gt;We recently got an issue report that Dropbox had stopped workin in our app (&lt;A href="https://igv.org/app" target="_blank" rel="noopener"&gt;https://igv.org/app&lt;/A&gt;) from Firefox and Safari.&amp;nbsp; &amp;nbsp;The app is a genomics visualizer, we support loading genomics data from Dropbox.&amp;nbsp; &amp;nbsp;The files are huge and most requests include a "range" header.&amp;nbsp; &amp;nbsp;This triggers an OPTIONs request which is failing with a 404 not-found error, and no CORS headers in the response.&amp;nbsp; It is easy to reproduce with the following javascript from Firefox or Safari.&amp;nbsp; &amp;nbsp;This request works from Chrome, its possible Chrome is not sending the OPTIONs request but that's a guess.&amp;nbsp; &amp;nbsp;In any event OPTIONS is a valid method and this should not fail.&amp;nbsp; &amp;nbsp; I do not know when this first occured, but it definitely worked in the past.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the snippet below commenting out the "range" header results in a simple GET request which returns successfully.&amp;nbsp; &amp;nbsp;The "range" header spawns an OPTIONS preflight, as it should, which fails.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;fetch&lt;/SPAN&gt;(&lt;SPAN&gt;'https://dl.dropboxusercontent.com/s/zx7owfskn0jk6ab/heart_slc25a3.cram?dl=0'&lt;/SPAN&gt;, {&lt;BR /&gt;    &lt;SPAN&gt;method&lt;/SPAN&gt;: &lt;SPAN&gt;'GET'&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;headers&lt;/SPAN&gt;: {&lt;BR /&gt;        &lt;SPAN&gt;range: 'bytes:1-1000'&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;BR /&gt;}).&lt;SPAN&gt;then&lt;/SPAN&gt;(x =&amp;gt; x.&lt;SPAN&gt;blob&lt;/SPAN&gt;().&lt;SPAN&gt;then&lt;/SPAN&gt;(y =&amp;gt; &lt;SPAN&gt;console&lt;/SPAN&gt;.&lt;SPAN&gt;log&lt;/SPAN&gt;(y)))&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 20:43:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/CORS-requests-involving-OPTIONS-preflight-failing-from-Firefox/m-p/582217#M27122</guid>
      <dc:creator>JimRobinson</dc:creator>
      <dc:date>2022-03-08T20:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: CORS requests involving OPTIONS preflight failing from Firefox and Safari</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/CORS-requests-involving-OPTIONS-preflight-failing-from-Firefox/m-p/582219#M27123</link>
      <description>&lt;P&gt;Network tab infro&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-03-07 at 5.44.11 PM.png" style="width: 800px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/28072iF4216F2C3DA9434D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-03-07 at 5.44.11 PM.png" alt="Screen Shot 2022-03-07 at 5.44.11 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 01:45:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/CORS-requests-involving-OPTIONS-preflight-failing-from-Firefox/m-p/582219#M27123</guid>
      <dc:creator>JimRobinson</dc:creator>
      <dc:date>2022-03-08T01:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: CORS requests involving OPTIONS preflight failing from Firefox and Safari</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/CORS-requests-involving-OPTIONS-preflight-failing-from-Firefox/m-p/582351#M27133</link>
      <description>&lt;P&gt;Thanks for the report! We'll look into it and I'll follow up here with any updates.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 18:27:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/CORS-requests-involving-OPTIONS-preflight-failing-from-Firefox/m-p/582351#M27133</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-03-08T18:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: CORS requests involving OPTIONS preflight failing from Firefox and Safari</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/CORS-requests-involving-OPTIONS-preflight-failing-from-Firefox/m-p/582807#M27144</link>
      <description>&lt;P&gt;This should be fixed now. Thanks for the report!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 20:10:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/CORS-requests-involving-OPTIONS-preflight-failing-from-Firefox/m-p/582807#M27144</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-03-10T20:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: CORS requests involving OPTIONS preflight failing from Firefox and Safari</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/CORS-requests-involving-OPTIONS-preflight-failing-from-Firefox/m-p/582821#M27145</link>
      <description>&lt;P&gt;Thanks for the fast fix!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 21:10:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/CORS-requests-involving-OPTIONS-preflight-failing-from-Firefox/m-p/582821#M27145</guid>
      <dc:creator>JimRobinson</dc:creator>
      <dc:date>2022-03-10T21:10:22Z</dc:date>
    </item>
  </channel>
</rss>

