How can you intercept an API request and then modify it?

  • 0
    I need to intercept the request, it is admissible to the VK API, it is possible to change and send it. And the answer is also intercepted and changed, and so that the server receives MY response, and not the VK response. (The answer is printed to the console by default)
    JavaScript Anonymous, Jul 27, 2020

  • 2 Answers
  • 0
    I can advise read about MITM
    Anonymous

  • 0
    You can change the content of the request through webRequest.OnBeforeRequest , but you cannot change the response to the request ...
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!