CORS Issue with Access-Control-Allow-Credentials (true,true) in Better Auth

Issue Description

I am encountering a persistent CORS policy issue when integrating Better Auth in my project. The browser blocks requests due to an invalid Access-Control-Allow-Credentials header value (true,true). Here’s the error message from the browser console:

Access to fetch at 'http://localhost:3000/prod/v1/auth/sign-in/social?currentURL=http%3A%2F%2Flocalhost%3A3001%2F' from origin 'http://localhost:3001' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Credentials' header in the response is 'true,true' which must be 'true' when the request's credentials mode is 'include'.
image.png
Was this page helpful?