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

119
Views
3rd party cookies alternative for chat plugin

I have a chat plugin which in some cases is intended to work cross-domain (i.e. the app is installed on a.com while the plugin is used on b.com). In order to authenticate users the app relies on a third-party cookie. This poses a problem due to the decision of modern browsers to opt completely out from using 3rd party cookies for security reasons.

I want to find a viable workaround to this issue and possible alternatives to 3rd party cookies.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If b.com wants to know which user is logged on a.com, it should make ajax call to a.com including the credentials:

fetch('https://a.com/api/v1/users/current', {mode: 'cors', credentials: 'include'})
  .then(response => response.json())
  .then(data => console.log(data));

On a.com you have to create the API endpoint /api/v1/users/current that will send the user data in JSON for currently logged in user. For better security it should respond only if the origin is b.com.

about 4 years ago · Juan Pablo Isaza Report
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!