Forum Discussion

Ge Y.'s avatar
Ge Y.
New member | Level 2
10 years ago

Content-Type charset on safari and firefox

Hi, I'm trying to make a call to API V2 via the browser. Here in the spec you wrote 

> - Set the Content-Type to "text/plain; charset=dropbox-cors-hack" instead of "application/json" or "application/octet-stream".

I tried doing this. It works on Chrome, but it somehow does not work on safari and Firefox. 

In both firefox and safari, the browser seems to overwrite the supplied charset, and uses `UTF-8` for the XHR instead. 

This truly made me sad T_T. Are you guys familiar with this situation?

Thanks!

4 Replies

Replies have been turned off for this discussion

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

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, Facebook or Instagram.

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!