cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to open/load the window. Dropbox.choose and Dropbox.save should only be called from within a

SOLVED
153 Views
5 Comments
1 Kudo
Highlighted
Level 6

Failed to open/load the window. Dropbox.choose and Dropbox.save should only be called from within a

Hi, I've posted this question on SO, any help will be appreciated. I have 2 days left to finish this before you guys shut down V1.

 

https://stackoverflow.com/questions/46433974/failed-to-open-load-the-window-dropbox-choose-and-dropb...

 

 

1 Accepted solution

Accepted Solutions
Solution
Dropboxer

Re: Failed to open/load the window. Dropbox.choose and Dropbox.save should only be called from withi

To use the Chooser, you need to register your domain(s) as "Chooser/Saver domains", not "OAuth 2 redirect URIs". The latter is unrelated to the Chooser. If you don't register your Chooser/Saver domains, you'll get the "Origin does not match any app domain" error.

Based on your sample, you should register "xomeauction.qa.esignonline.net" as a Chooser/Saver domain.
5 Replies
Dropboxer

Re: Failed to open/load the window. Dropbox.choose and Dropbox.save should only be called from withi

Thanks! I've commented there.
Level 6

Re: Failed to open/load the window. Dropbox.choose and Dropbox.save should only be called from withi

Thanks Greg, I replied back to your comment.

Level 6

Re: Failed to open/load the window. Dropbox.choose and Dropbox.save should only be called from withi

Hey Greg,

 

Strangely, enabling all popups on the browser makes the Dropbox.Choose to come up, but now with this error.

 

This is my URL: https://www.dropbox.com/chooser?origin=https%3A%2F%2Fxomeauction.qa.esignonline.net&app_key=eljecz59...

 

And the chooser window comes up with this error in it.

error "Origin does not match any app domain"

 

 

In my App I do have this redirect URL set.

https://xomeauction.qa.esignonline.net/cloud/CallBack/DropBoxAuthorize.aspx

 

Any thoughts?

Solution
Dropboxer

Re: Failed to open/load the window. Dropbox.choose and Dropbox.save should only be called from withi

To use the Chooser, you need to register your domain(s) as "Chooser/Saver domains", not "OAuth 2 redirect URIs". The latter is unrelated to the Chooser. If you don't register your Chooser/Saver domains, you'll get the "Origin does not match any app domain" error.

Based on your sample, you should register "xomeauction.qa.esignonline.net" as a Chooser/Saver domain.
Level 6

Re: Failed to open/load the window. Dropbox.choose and Dropbox.save should only be called from withi

That was it, thanks Greg!