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.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

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

Load xml file to browser's local storage

Load xml file to browser's local storage

ER2480
Explorer | Level 4

Hi, 

I was trying to directly load to the browser's local storage  a file saved and shared on dropbox, using an xmlrequest but I am getting the following error  'http://localhost' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Any help?

The use case is: user uploads to a common dropbox a file (using the API) later the user selects that file (which has a shared link associated) and  the file gets loaded to the local storage of the browser for further editing.

 

1 Reply 1

Greg-DB
Dropbox Staff

Can you share the relevant code so we can take a look? Be sure to redact any access/refresh tokens though. Thanks in advance!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?