Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Dane E.
9 years agoNew member | Level 1
Is it possible to use the dropbox chooser on a desktop app? (node-webkit)
Hi,
I'm developing a node-webkit application which integrates with dropbox. I would love to be able to use the dropbox chooser which is available for web-apps. However, because it's a desktop app, it doesn't have a host/domain name, so I can't register it with dropbox to grant it permission. Hence, when I try to access the dropbox-chooser, I get the "Invalid Origin" error.
Does anyone know of any workaround for this situation? I would love to be able to seamlessly integrate dropbox into my app like how I could do it with dropbox chooser.
Thanks!
2 Replies
Replies have been turned off for this discussion
- Steve M.9 years ago
Dropbox Staff
nwjs (formerly node-webkit) lets you set the domain of your app to whatever you want. See http://docs.nwjs.io/en/latest/References/Manifest%20Format/#domain.
In short, add "domain": "domain-you-want" to your manifest.json, and then add "domain-you-want" as an allowed domain with your Chooser app. I did this and then found the Chooser worked fine.
- Dane E.9 years agoNew member | Level 1
Thanks so much for the fast response. That worked perfectly, thank you!
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!