There is a web application written in ASP.NET MVC . On one html-page js-library is connected. Under certain user actions on this page from this library, a js script is called that sends various http requests to get the necessary data.

But requests are formed as follows:

 index.php?address=http://noname.net:80/services/cmp/ 

I need to intercept these requests, change them (make a simple request http://noname.net:80/services/cmp/ ), then execute these requests and return the result back to the js script. In the library itself, I cannot make changes to the script that makes this request. How can I do that?

  • one
    This is possible only through ServiceWorker , but ServiceWorkers are still in development in most browsers and the standard for them is still in the draft stage. In addition, they only work with HTTPS. - Arnial
  • 2
    Throw the library in the trash. - Pavel Mayorov

0