Need to see if your shared folder is taking up space on your dropbox šŸ‘Øā€šŸ’»? Find out how to check here.

Forum Discussion

ajaybaglane's avatar
ajaybaglane
New member | Level 2
6 years ago

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

  • query for dreambox's avatar
    query for dreambox
    Explorer | Level 4
    3 years ago

    I am facing this issue with file served from dropboxusercontent.com, is this supposed to happen?

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

    query for dreambox Unfortunately, using dropboxusercontent.com is not officially supported, so I can't offer help with that.

  • query for dreambox's avatar
    query for dreambox
    Explorer | Level 4
    3 years ago

    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-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    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.

  • ЗГравко's avatar
    ЗГравко
    Legendary | Level 20
    3 years ago

    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

Node avatar for 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!