i have backend which is running on api.test.com , and i have two front end project one of them is running on test.com and another one is running on example.com (complete different domain)
when i log in on test.com backend set's cookie to my request but i have no idea why am i get logged in also in example.com too
i tried crossDomain too , it's not working either
this is how i set my cookies
ctx.cookies.set("Authorization", token,
{
secret: true,
secure: true,
expires: expire_date,
sameSite: 'none'
});
this is my axios config
import axios from "axios";
const CancelToken = axios.CancelToken;
const source = CancelToken.source();
const instance = axios.create({
cancelToken: source.token,
baseURL: 'https://api.test.com',
withCredentials: true,
})
export default instance;
would you please help me on this.