We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Ge Y.
10 years agoNew member | Level 2
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
- Alexandra F.110 years agoNew member | Level 1
Hi Ge - thanks for reporting. I think this is a bug in Firefox. See this StackOverflow post: https://stackoverflow.com/questions/33902289/using-dropbox-v2-api-from-browser . We haven't had reports about this happening in Safari yet. Is it the exact same error? If not, can you share the code and output, so I can try to reproduce on my side?
- Ge Y.10 years agoNew member | Level 2
Hey Alex,
I think it is exactly the same error in safari. Aka the charset gets re-written by the browser.
Ge
- Alexandra F.110 years agoNew member | Level 1
Thanks for the report. I'll look into it.
- Greg-DB10 years ago
Dropbox Community Moderator
I'm not seeing this in Safari. Can you share some code to reproduce the issue? Also, please let us know what version of Safari you're using.
Also, if you are seeing it in Safari, doe the answer at http://stackoverflow.com/a/34168434/1305693 help?
Thanks in advance!
About 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!