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

83
Visualizações
Working with legacy endpoints that require CSRF token

I have an old java server that embeds CSRF token into html page with .jsp in the following format:

<input type="hidden" name="_token" value="Some_Random_CSRF_Token_Value_Here" />

and there are multiple of these elements on html page. Site requires authentication/login, not sure if it is relevant though.

Some of the endpoints require CSRF token in order to interact with an endpoint.

I am trying to use these endpoints from React SPA I tried to fetch and then parse html to extract CSRF token, but that didn't help.

How can I interact with these kinds of endpoints?

Edit: Assume that I don't have access to modify server code.

about 4 years ago · Juan Pablo Isaza
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