In addition to ensuring origins are correctly set in Auth0,
Don't use fetch(http://localhost:8080/login) in your client code.
fetch(http://localhost:8080/login)
Use window.location.href='http://localhost:8080/login' or similar.
window.location.href='http://localhost:8080/login'