Auth0 Home Blog Docs

Allow file Web Origin

auth0
authentication_api
auth0-server
authorization
auth0-api

#1

I am coding an Electron Desktop app with JS and I need to call the login lock from a file.
I have no problem signing in with Social Logins but when I try to log in with Username-Password authentication I get a 403 from /co/authenticate saying file:// origin is not allowed.

Any solution?


#2

You should try adding file://* in the Allowed Origins (CORS) for your client in the dashboard: https://manage.auth0.com/#/clients

This should enable you to bypass the “Origin is not allowed” error when calling lock from a file://…


#3

I already added file://* in CORS but I still get a 403 (for /co/authenticate) when trying to log in from Username-Password lock…


#4

I already added file://* in CORS but I still get a 403 (for /co/authenticate) when trying to log in from Username-Password lock…


#5

I am having the same issue. Is there a solution to this?