_ga cookies are sent instead of connect.sid

Viewed 5

Why is my browser sending request cookies as _ga on localhost?

I am sending a request from localhost:3000(frontend) to localhost:3005(backend) but the request that are sent is a _ga instead of connect.sid and my question is why

import axios from 'axios';
// config

// ----------------------------------------------------------------------
const HOST_API =
  process.env.NODE_ENV === "production"
    ? "https://norskins.herokuapp.com/api/v1/"
    : "http://localhost:3005/api/v1";

const axiosInstance = axios.create({
  baseURL: HOST_API,
  withCredentials:true
});

axiosInstance.interceptors.response.use(
  (response) => response,
  (error) => Promise.reject((error.response && error.response.data) || 'Something went wrong')
);

export default axiosInstance;

enter image description here

0 Answers
Related