cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Whether you are transferring a single drive, a team or an entire organization, Movebot's cloud migration tool has been built to make your Dropbox migration simple - learn all about it 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: 

Access-Control-Allow-Origin

Access-Control-Allow-Origin

ajaybaglane
New member | Level 2

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.

2 Replies 2

Re: Access-Control-Allow-Origin

ajaybaglane
New member | Level 2

pls help me 

 

Re: Access-Control-Allow-Origin

Greg-DB
Dropboxer

[Cross-linking for reference: https://stackoverflow.com/questions/62718038/access-control-allow-origin-header-is-present-on-the-re... ]

 

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.

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    ajaybaglane New member | Level 2
What do Dropbox user levels mean?
Need more support?