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

114
Vistas
How to prevent sending cookies from UI using react to backend for selective apis

In our application , there are certain cookies related to analytics etc which are being sent as part of every request api from frontend, we are not explicity setting any cookies from frontend as part of any request.

Due to certain scenarios the cookie size is becoming large and in turn increasing the size of header, we have increased the size of header as well, but still we receive the 413 error code or at times 400 with no response(request size is too large)

we have tried with axios setting withCredentials to false and with fetch setting credentials:'omit' we still see the credentials:'include' when we use the request as copy as fetch

Is there a way to prevent sending cookies from frontend for selective api request, the application is using react in frontend

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can try axios request Interceptors, they allow you to run arbitrary code for each request and modify the payload/headers and all kinds of things. Possibly cookies too.

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