<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Trying to use Dropbox Chooser with Google Apps Script Web App in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Trying-to-use-Dropbox-Chooser-with-Google-Apps-Script-Web-App/m-p/334511#M19515</link>
    <description>&lt;P&gt;&lt;SPAN&gt;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:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/apps" target="_blank" rel="noopener noreferrer"&gt;https://www.dropbox.com/developers/apps&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't do so, you'll get this error message when attempting to use the Chooser or Saver.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2019 16:12:50 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-03-18T16:12:50Z</dc:date>
    <item>
      <title>Trying to use Dropbox Chooser with Google Apps Script Web App</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Trying-to-use-Dropbox-Chooser-with-Google-Apps-Script-Web-App/m-p/334380#M19511</link>
      <description>&lt;P&gt;Getting the error:&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Origin does not match any app domain&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is my setup function:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;function setupDropBox() {&lt;BR /&gt;var options ={success: function(files) {dbxUpload(files);}}&lt;BR /&gt;var button = Dropbox.createChooseButton(options);&lt;BR /&gt;document.getElementById("dropbox_controls").appendChild(button);&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Inserted this into the &amp;lt;head&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;script type="text/javascript" src="&lt;A href="https://www.dropbox.com/static/api/2/dropins.js" target="_blank" rel="noopener"&gt;https://www.dropbox.com/static/api/2/dropins.js&lt;/A&gt;" id="dropboxjs" data-app-key="appkey"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is what the Google Apps Script Web App Deployment Url Looks like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://script.google.com/a/mydomainname.com/macros/s/IdStringHere/exec" target="_blank" rel="noopener"&gt;https://script.google.com/a/mydomainname.com/macros/s/IdStringHere/exec&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have a G-Suite Business Account&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm thinking it should be some substring of the Deployment Url.&amp;nbsp; But this is the first time I wrote an app like this and I don't know much about it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:07:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Trying-to-use-Dropbox-Chooser-with-Google-Apps-Script-Web-App/m-p/334380#M19511</guid>
      <dc:creator>C00per</dc:creator>
      <dc:date>2019-05-29T09:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use Dropbox Chooser with Google Apps Script Web App</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Trying-to-use-Dropbox-Chooser-with-Google-Apps-Script-Web-App/m-p/334511#M19515</link>
      <description>&lt;P&gt;&lt;SPAN&gt;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:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/apps" target="_blank" rel="noopener noreferrer"&gt;https://www.dropbox.com/developers/apps&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't do so, you'll get this error message when attempting to use the Chooser or Saver.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 16:12:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Trying-to-use-Dropbox-Chooser-with-Google-Apps-Script-Web-App/m-p/334511#M19515</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-03-18T16:12:50Z</dc:date>
    </item>
  </channel>
</rss>

