cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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

Greg-DB
Dropbox Staff

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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?