Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

112
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!