jbreckmckye / electron-auth0-login

Helper widget for Auth0 authentication in Electron desktop apps
MIT License
27 stars 19 forks source link

Can't load content from Auth0 login page: net::ERR_BLOCKED_BY_RESPONSE #40

Closed marcosvidal closed 1 year ago

marcosvidal commented 1 year ago

When the browserwindow opens and goes to the auth0 login URL, it tries to use a script (lock.min.js) that fails to load. The complete error is:

Failed to load resource: net::ERR_BLOCKED_BY_RESPONSE.NotSameOriginAfterDefaultedToSameOriginByCoep

Obviously, this makes page unusable. Any idea why this might be happening?

Any help to point me in the right direction would be much appreciated.

jbreckmckye commented 1 year ago

At first glance this seems to be something to do with Cross Origin Embedder Policy. What version of Electron are you using?

marcosvidal commented 1 year ago

Thanks for your help. I figured that out and solved the issue by changing the headers to accept content from auth0.

jbreckmckye commented 1 year ago

Can you provide more details? What do you mean by "changing the headers"? In which request? And to what values?