We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

joshstillerman's avatar
joshstillerman
New member | Level 2
7 years ago

Use nginx to add access token to requests

I am trying to set up a simple proxy server on my local network which will add an Authorization Header and forward requests to the dropbox api.  In particular to 

 

/2/files/upload

 

I have tried simple to complex nginx configurations but always get 502 responses.  Usually complainging about CORS.

 

for example:

my application does a post to:

http://localhost:5555/2/files/upload

 

and I want nginx to forward this on to 

 

https://api.dropboxapi.com/2/files/upload

 

1 Reply

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago
    It sounds like this question is more about how to configure nginx than about the Dropbox API itself, so I'm afraid I can't be of help.

    Perhaps someone else here can offer some help, but otherwise you may be better served for this question on an nginx forum, or a general question site like StackOverflow.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,037 PostsLatest Activity: 22 minutes ago
412 Following

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 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!