let auth = new window.GoTrue({
APIUrl: "https://earnxapp.netlify.com/.netlify/identity",
setCookie: false,
});
...
auth.login(this.email, this.password)
Access to fetch at 'https://earnxapp.netlify.com/.netlify/identity/token' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
This issue is the same when called from my netlify or connected domain.