'Dropbox oauth window is not working

I'm porting my application to Electron and I was surprised to find out that the Dropbox authentication doesn't work in this environment. It does work in Chrome though.

The sign-in buttons remain disabled and the labels appear over the inputs.

The following message is displayed in the console:

The Content-Security-Policy directive 'worker-src' is implemented behind a flag which is currently disabled.

Console messages

I'm testing using [email protected], [email protected] on OS X.

I found a similar question, but it seems to use a different version of Electron and has a different error message:

Dropbox oauth view is not rendering properly


Update:

The Content-Security-Policy message seems to be related to the Chrome version. The worker-src directive was introduced in Chrome 59 and [email protected] is shipped with Chrome 58.

https://www.chromestatus.com/feature/5922594955984896

I've tested with [email protected] that comes with Chrome 59, and the console messages are gone. But the problem with the auth page remains.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source