Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

114
Vistas
how to avoid shared cookies

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.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda