Need to see if your shared folder is taking up space on your dropbox šØāš»? Find out how to check here.
Forum Discussion
ajaybaglane
6 years agoNew member | Level 2
Access-Control-Allow-Origin
i'm using javascript fetch(url,
{
method: 'GET',
mode: 'cors',
cache: 'no-cache',
credentials: 'same-origin',
headers: myHeaders,
referrer: 'no-referrer', }
Error:-
Access to fetch at 'https://www.dropbox.com/s/v2pca6kq8nsqmso/abb5c48dae55560e4ae7d41af7bfdc50.jpg?raw=1' from origin 'http://localhost:8080' 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.
7 Replies
- ajaybaglane6 years agoNew member | Level 2
pls help me
- Greg-DB6 years ago
Dropbox Community Moderator
[Cross-linking for reference: https://stackoverflow.com/questions/62718038/access-control-allow-origin-header-is-present-on-the-requested-resource ]
I see you already posted this on StackOverflow and got a response there. That response is correct, Dropbox doesn't allow CORS requests on www.dropbox.com.
- query for dreambox3 years agoExplorer | Level 4
I am facing this issue with file served from dropboxusercontent.com, is this supposed to happen?
- Greg-DB3 years ago
Dropbox Community Moderator
query for dreambox Unfortunately, using dropboxusercontent.com is not officially supported, so I can't offer help with that.
- query for dreambox3 years agoExplorer | Level 4
What exactly is meant by not "officially supported", is Dropbox supposed to be used only for media content(e.g. images and video) storage but not static content(css JS and other files) because with no access-control-allow-origin all these file will be blocked by browsers ?
- Greg-DB3 years ago
Dropbox Community Moderator
query for dreambox Regardless of the file type, substituting in 'dropboxusercontent.com' in Dropbox shared links like this is not something that Dropbox documents and may break without notice, and we can't offer technical support for issues that occur when doing so.
- ŠŠ“ŃŠ°Š²ŠŗŠ¾3 years agoLegendary | Level 20
Greg-DB wrote:..., substituting in 'dropboxusercontent.com' in Dropbox shared links like this is not something that Dropbox documents and may break without notice, and we can't offer technical support for issues that occur when doing so.
Hm...š¤ Greg, you may need to inform your shared links product manager about that! Just take a look here. š¤·š¤¦ He may have no any idea that it's unsupported! šš¤« Would be nice the different Dropbox departments speak to each others and avoid such a confusions like is something supported or not. š
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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, Facebook or Instagram.
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!