We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

WayneSmallman's avatar
WayneSmallman
Explorer | Level 3
7 years ago

Origin does not match any app domain

Hi, I'm picking up development after another developer, so I'm not familiar with Dropbox.

 

I've managed to get the Dropbox button working, but when clicked I get the: "Origin does not match any app domain"

 

As I understand it, I have to place the URL into the: "Chooser / Save domains" field, but when I do it appears to be choking on the port number in the URL, with the error: "The domain name you entered is invalid"

 

I'm using: "http://under-cloud:8888/" for local development, and because I'm using MAMP Pro I have to use the port number (I've tried switching to the default port numbers, but it kills the application).

 

Update: I've managed to remove the port number, but it's made no difference, and I'm still getting the same error as before.

 

Any ideas?

  • Greg-DB's avatar
    Greg-DB
    7 years ago

    WayneSmallman It sounds like you probably are somehow setting different app keys in your different environments, and only one has the extra dev domain registered. I'll follow up on your ticket with some more specifics.

     

    Jonathancarter Likewise, according to the URL you shared, you're using the app key "estke133dioy5uy", which isn't registered for "3h-pk3.durunner.ai" or "durunner.ai". Make sure you're updating the app with key "estke133dioy5uy" to add the domains, or swap in the app key you want to use instead.

  • Jonathancarter's avatar
    Jonathancarter
    Explorer | Level 3

    I hve exactly the same issue and I looked in previous support requests and people all seem to have solved it but none of the solutions worked in my case.

     

    If anyone has a solution I would appreciate it.

     

    I am using a subdomain but apparently this should not matter.

     

    I even put the subdomain and the list of chooser domains and still have the same issue

     

    • Greg-DB's avatar
      Greg-DB
      Icon for Dropbox Staff rankDropbox Staff
      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.

      When registering the domains, you should register only the domain portion itself, not the protocol (e.g., http:// or https://) or the port number. For instance, in the example in the first post here that would just be "under-cloud". (It sounds like that's a local hostname, since it uses a custom port and doesn't have a TLD, but it should still work.)

      Also, note that registering a domain also allows use on any subdomain. For example, registering "example.com" would allow use on "www.example.com" and "mail.example.com" . Registering only "www.example.com" would allow use on "www.example.com", but not "mail.example.com".

      If you've registered your domain(s) and something isn't working as expected, please open an API ticket with the relevant app key as well the full URL of the Dropbox page showing the error message here:

      https://www.dropbox.com/developers/contact
      • WayneSmallman's avatar
        WayneSmallman
        Explorer | Level 3
        Hi Greg, and thank you for the response!

        I've escalated this issue, as recommended.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 12 months ago
325 Following

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 or Facebook.

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!