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

159
Visualizações
Intercepting and rerouting http request sent by javascript scripts to a different server

Assuming I have a simple html + javascript application. I have a script from a cdn included in the html via the script:src tag. This script sends a request to a server using jquery's ajax library. Is it possible to intercept and send the request made by the script to a different server instead of the server that it currently sends the request to.

The script sends a request to a server but I would like to send the request first to my personal api, inject some headers using data that is only available in my api, then send the request to their server from my api, thus using my api server as a proxy.

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