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

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

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