Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!