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

183
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
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