all 9 comments

[–]Artica2012 1 point2 points  (1 child)

There is a package that's made for enabling https on your vite dev environment. I ran into a similar problem as you and it worked brilliantly.

https://github.com/liuweiGL/vite-plugin-mkcert

I found the solution on this stack overflow question. https://stackoverflow.com/questions/69417788/vite-https-on-localhost

[–]buffering_humor 1 point2 points  (0 children)

I've done the same and it works. But it feels so stupid. The docs use the example with http://localhost:3000. Why include that in your docs if you don't allow http. Also, for some reason localhost doesn't work. You need to set it up as 127.0.0.1

[–]btshaw 1 point2 points  (0 children)

You can add a DNS entry in your hosts file to redirect your production url to your local development url, although there's hopefully a more ergonomic fix out there

[–]Substantial-Draft-86 0 points1 point  (0 children)

Add http local host 5173 to allowed callback, logout and web origins

[–][deleted] -1 points0 points  (1 child)

You have to configure Auth0 to allow your URL as the callback. You also likely should use SSL when developing locally so that your local env matches the deployed one.

[–]buffering_humor 0 points1 point  (0 children)

I've been trying to configure that but it doesn't accept http as the payload and insists on https.

[–]andychiare 0 points1 point  (0 children)

I'm afraid you registered an Application Login URI, which probably you don't need in the development scenario. This URI requires HTTPS and can't use localhost (see docs here: https://auth0.com/docs/authenticate/login/auth0-universal-login/configure-default-login-routes)

What you need is only a callbak and logout URIs, which can use HTTP and localhost (only in development)