We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

ER2480's avatar
ER2480
Explorer | Level 4
4 years ago

Load xml file to browser's local storage

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

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

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

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 9 months ago
411 Following

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!