cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Rizzo New member | Level 2
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

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

zoid
Helpful | Level 5
APP

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

Rizzo New member | Level 2
New member | Level 2

What do you mean? 

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

Dropboxer
Dropboxer

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.

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?