cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more 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: 

Endpoint /token reponse with content-type "text/javascript"

Endpoint /token reponse with content-type "text/javascript"

Rizzo
New member | Level 2

My app is using the authorization code flow, so after getting auth. code its requesting access token through token endpoint, Its returning a response with json content: "{ access_token: ... }", but content-type header is "text/javascript",  is it right? Thanks in advance

 

3 Replies 3

zoid
Helpful | Level 5
APP

Rizzo
New member | Level 2

What do you mean? :thinking:

Greg-DB
Dropbox Staff

We do still return the older "text/javascript" by default for historical reasons, in order to not break old integrations.

If you send the "Accept: application/json" request header though, you'll get "application/json" instead.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Rizzo New member | Level 2
  • User avatar
    zoid Helpful | Level 5
What do Dropbox user levels mean?