You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

dprothero's avatar
dprothero
Explorer | Level 4
2 years ago

/list_folder/longpoll not working with CORS

I see this was an issue 5 years ago, but that issue was reported as fixed. However, I am seeing the issue once again. I can call /list_folder no problem, as well as /list_folder/continue as you can see in my network trace below.

 

However, I cannot call /list_folder/longpoll. The error in the console is the usual CORS error message:

 

"Access to fetch at 'https://api.dropboxapi.com/2/files/list_folder/longpoll' from origin 'http://localhost:4200' 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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled."

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,882 PostsLatest Activity: 4 hours ago
325 Following

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!