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

1.9K
Vistas
Get set-cookie value from the response header angular

I am trying to get the set-cookie from Response Headers.

The reason of doing this is set-cookie is not setting cookie and showing the warning This attempt to set a cookie via a Set-Cookie header was blocked because its Domain attribute was invalid with regards to the current host url. Attached is the screenshot

enter image description here

Now I thought to get the set-cookie value from Response Header by the following code enter image description here

But it always returns null for set-cookie but return the value fo expires.

Please anyone can guide how to fix this issue or how can I get the value of set-cookie from Response Header.

Any help will be highly appreciated.

Thanks

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

According to developer.mozilla.org set-cookie is a forbidden response header name. You cannot read it using browser-side JavaScript

Browsers block frontend JavaScript code from accessing the Set Cookie header, as required by the Fetch spec, which defines Set-Cookie as a forbidden response-header name that must be filtered out from any response exposed to frontend code.

over 4 years ago · Santiago Trujillo 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