GoTrue API now has CORS error

I get this error now, with the GoTrue.js library.

let auth = new window.GoTrue({
    APIUrl: "",
   setCookie: false,
auth.login(, this.password)

Access to fetch at '' 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.

Hi, @DecentralisedTech, I think this is a side effect of this change:

Would you please change the requests to and let us know if that resolves the issue?

Yes that worked!
The site was created pre the domain update but it’s now working with the .app TLD now.