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

184
Visualizações
How to Provide An Origin's First-Party Cookies When Calling it as a Third-Party

Suppose I own a website at "cookiemaker.com". I want my client (website owners themselves) to send HTTP requests to my server that include cookies I generated. In other words:

  1. End-User "Bob" visits my site at cookiemaker.com
  2. I (cookiemaker.com) provides him with a cookie that his browser now stores
  3. Bob is now visiting another website ("cool-recipes.com")
  4. Bob clicks a button within cool-recipes.com, then his browser sends an HTTP request to cookiemaker.com.

Is there a way to include the cookie created at (2) in the request sent at (4)?

(Assuming full control of both websites)

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

HTTP cookies are always sent to the url requested, the origin requesting it (cool-recipes.com) should have a response with a header as the following:

Access-Control-Allow-Origin: <origin> //The website requester

If this header is not present, you will get an error like the following:

Access to fetch at '<requested site>' from origin '<your site>' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

You have to add the origin (cool-recipes.com) to the site requested response headers (cookiemaker.com).

Access-Control-Allow-Origin: https://cool-recipes.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