Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
166
rated 0 times [  172] [ 6]  / answers: 1 / hits: 6199  / 10 Years ago, tue, may 27, 2014, 12:00:00

I try to get access to my dropbox app from localhost to download images from there. The popup for the chooser appears, but I get an error:



Origin does not match any app domain



SCRIPT



 <div id=container><a id=link></a></div>


<script>
var button = Dropbox.createChooseButton({
success: function (files) {
var linkTag = document.getElementById('link');
linkTag.href = files[0].link;
linkTag.textContent = files[0].link;
},
linkType: 'direct'
});
document.getElementById('container').appendChild(button);
</script>


I have included the dropins.js with the app-key, generated on dropbox.



Settings Dropbox



OAUTH2 Redirect URI is set to



http://127.0.0.1:8020/


Any ideas? I´ve still tried a lot:




  • URI without Port

  • URI with my folder .../balin-spice/

  • URI localhost in connection with a URI shortener


More From » dropbox-api

 Answers
1

There should be a section in the App console (https://www.dropbox.com/developers/apps/info/...) called Drop-ins domains. Make sure to add all the domains you're going to use there. (It looks like you probably need to add 127.0.0.1 and/or localhost.)


[#45023] Sunday, May 25, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jacklynr

Total Points: 542
Total Questions: 120
Total Answers: 95

Location: Cape Verde
Member since Fri, Nov 27, 2020
4 Years ago
;