Cors error when trying to sign-in using email on expo app using external better auth server
Expo✅Solved
I'm getting this error on my console log when trying to sign-in on my expo project.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:3000/api/auth/get-session. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:3000/api/auth/get-session. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.
The better-auth server is on a separate project using nextjs and it works perfectly fine on there without any problems (I can sign-in, view user information, etc).