traccar post session cookie disapper

Hello am doing a react project on localhost:3000 and am using traccar demo4.traccar.api api post session when I post data the respone status is 200 ok and data return perfect but the problem in cookie it appears with yellow background and disappears after reload when I use localhost apis cookie set perfectly but I need to use demo..

Here is the code let post = async () => { try { const data = qs.stringify({ email: "****", password: "***", }); const response = await axios.post( "https://demo4.traccar.org/api/session", data, { withXSRFToken: true, withCredentials: true, headers: { "Content-Type": "application/x-www-form-urlencoded", }, } ); console.log(response); return response.data; } catch (error) { console.error("Error posting session:", error); throw error; } };

Am trying to set my cookie to use it in another api for sockets