usersGetCurrentAccount doesn't work in MS Edge. I get this error:
Error in call to API function "users/get_current_account": Bad HTTP "Content-Type" header: "text/plain;charset=UTF-8". Expecting one of "application/json", "application/json; charset=utf-8", "text/plain; charset=dropbox-cors-hack".
This doesn't happen in Firefox and Chrome. Seems like Edge adds "content-type: text/plain; charset=UTF-8" request header. My code:
var dbx_options = {
clientId: "",
accessToken: ""
};
var dbxClient = new Dropbox.Dropbox(dbx_options);
dbxClient.usersGetCurrentAccount()
.catch(function(err) {
console.error(err);
})
.then(function (acc) {
console.log(acc);
});