Vercel logout on any refresh

Whenever you refresh my vercel project, it logs the user out. I noticed this started happening every time after it was working previously. All my URLs are https://*.vercel.app and I tested getting a proper client ID from Google but this happens with username/password users as well. Here’s my error in the front end;

Appreciate any direction folks can provide, I have tried lots of things but can’t seem to make any sense of this

Hi @theStacks

Welcome to the Auth0 Community!

I am sorry about the late reply to your inquiry!

It appears that you are making an XMLHttpRequest or Fetch to a different domain than your page is on whenever the page is refreshed. Due to the nature of CORS , for every request made to a domain, an HTTP cookie is attached to it, thus blocking the request that you are trying to makes.Also, any calls made to the /authorize endpoint should be made via front-channel HTTP requests. They should only be made via a redirect or other top-level browser navigation and this is why CORS is not supported.

If you have any other questions, feel free to leave a reply or post again on the community!

Kind Regards,
Nik