cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CORS pre-flight workaround is giving us 400 errors

CORS pre-flight workaround is giving us 400 errors

Dicta
Explorer | Level 4

In https://www.dropbox.com/developers/documentation/http/documentation in the section called "Browser-based JavaScript and CORS pre-flight requests" a method is given to avoid a preflight request. We've been using this successfully for half a year. Today, we've noticed a roughly 50% failure rate for API calls using this method with an error "Error in call to API function "files/list_folder": Unexpected URL params: "authorization"". The other 50% work just fine as usual. In both cases, they are the same calls - one call to list_folder will fail and the next will succeed. An example of a failure has

x-dropbox-request-id: 478d61ccd84d41d3b0c061f2c212ff9a

 

We have found that reverting to use the version of the API that does use a preflight works just fine, so we have a (slightly slower) workaround.

 

Any insight would be appreciated.

 

Thanks!

3 Replies 3

Scott-DB
Dropbox Staff

Hi Dicta,

 

Thanks for reporting this issue. I have followed up with developers who are investigating further and will let you know when we have more information.

Greg-DB
Dropbox Staff

@Dicta Can you please try again and let us know if you're still seeing the same issue now? Thanks!

Dicta
Explorer | Level 4

It appears to be working reliably again, thanks!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Dicta Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Scott-DB Dropbox Staff
What do Dropbox user levels mean?