Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Getting the error: Origin does not match any app domain
This is my setup function:
function setupDropBox() {
var options ={success: function(files) {dbxUpload(files);}}
var button = Dropbox.createChooseButton(options);
document.getElementById("dropbox_controls").appendChild(button);
}
Inserted this into the <head>
<script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="appkey"></script>
This is what the Google Apps Script Web App Deployment Url Looks like:
https://script.google.com/a/mydomainname.com/macros/s/IdStringHere/exec
I have a G-Suite Business Account
I'm thinking it should be some substring of the Deployment Url. But this is the first time I wrote an app like this and I don't know much about it.
In order to use the Dropbox Chooser or Saver you need to pre-register the domains you'll use it on. You can do that by entering them under "Chooser/Saver domains" on your app's page on the App Console:
https://www.dropbox.com/developers/apps
If you don't do so, you'll get this error message when attempting to use the Chooser or Saver.
Note however that registering a domain allows any page on that domain to use your app key for the Chooser/Saver. In this case, you're using what appears to be a shared domain of "script.google.com", so if you register that, any page on "script.google.com" would be able to use your app key for the Chooser/Saver.
In order to use the Dropbox Chooser or Saver you need to pre-register the domains you'll use it on. You can do that by entering them under "Chooser/Saver domains" on your app's page on the App Console:
https://www.dropbox.com/developers/apps
If you don't do so, you'll get this error message when attempting to use the Chooser or Saver.
Note however that registering a domain allows any page on that domain to use your app key for the Chooser/Saver. In this case, you're using what appears to be a shared domain of "script.google.com", so if you register that, any page on "script.google.com" would be able to use your app key for the Chooser/Saver.
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.Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on Twitter or Facebook.
For more info on available support options, see this article.
If you found the answer to your question, please 'like' the post to say thanks to the user!