Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

120
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda