error.code is undefined when using supabase.auth.updateUser

After debugging, is seems like parseResponseAPIVersion function returns
null
, as it's not able to get the X-Supabase-Api-Version header.
The header is present in the response, but is not accessible by JS. Is the value of access-control-expose-headers a possible issue?
image.png
Was this page helpful?