cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Tell us what you want to see on the Community here!
Close

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

Highlighted

Access-Control-Allow-Origin

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
Highlighted

Re: Access-Control-Allow-Origin

New member | Level 2

pls help me 

 

Highlighted

Re: Access-Control-Allow-Origin

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.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?