how to properly setup for cross domain - express + vite react
despite adding the required config in my backend auth.ts i am facing this issue.
one thing is i am using http can it be the reason, if yes why am i getting the error above Instead of new error?

6 Replies
is this happening in production or locally?
production
A cookie with the Secure attribute is only sent to the server with an encrypted request over the HTTPS protocol. It's never sent with unsecured HTTP (except on localhost) - mdn docs
also, modyfing the
session-token
only isn't really enough for a cross site setup.
You should specify the attribiutes in a defaultCookieAttributes
https://www.better-auth.com/docs/reference/options#advancedOptions | Better Auth
Better Auth configuration options reference.
cross domain or cross subdomain?
cross domain