I've added the dropbox chooser to my app like so:
<script type="text/javascript" src="js/dropins.js" id="dropboxjs" data-app-key="my app key is here"></script>
$('#dropbox-choose').on('touchend', function(){
Dropbox.choose({
success: function(file){
console.log("Here's the file link:" + file[0].link)
},
cancel: function() {
},
linkType: "direct",
multiselect: false,
extensions: ['.pdf', '.doc', '.docx' , '.txt' , '.rtf' ,'.wps' , '.odt']
});
})
it goes to load up the chooser, but I get an 'error':'invalid origin' every time
any ideas?