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