cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Invalid Origin Error when using * as origin in chooser API

Invalid Origin Error when using * as origin in chooser API

sheine M.
New member | Level 1

Hi,

I'm developing on a mac app that uses bundled assets and the code is running with file:// urls in the main webview. To receive the post message from the dropbox chooser correctly, I need the origin to be set to be * according to https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage#Using_window.postMessage_in_exte.... However, when I try to use *, the dropbox window displays invalid origin.

Thanks for your help!

Best,

Yang

1 Reply 1

Re: Invalid Origin Error when using * as origin in chooser API

Greg-DB
Dropboxer

Hi Yang, thanks for your post. Unfortunately, the Dropbox Chooser doesn't currently support running from environments without an actual domain to check, so I'm afraid there isn't a way to make this work. We'll consider this a feature request though.

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?