I
I
igroryan2020-10-07 11:16:14
JavaScript
igroryan, 2020-10-07 11:16:14

How to modify response from API in browser?

Hello!
There is a working site, spa + api, not mine, no sources, no access. completely alien.
I want to change only 1 response from api, and leave all other requests-responses unchanged (to go directly to the server),
how can I do this?

I tried Chrome Extensions - but you can't directly modify the response, only headers, not json response
. There is an idea to make a proxy, and register it in the browser and then I can all the necessary requests and responses. but the modern web is all over https. from the first time it was not possible to start an https proxy. (done on node http proxy)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Anton, 2020-10-07
@Fragster

https://ru.wikipedia.org/wiki/%D0%90%D0%B4%D0%B0%D...

A
acwartz, 2020-10-07
@acwartz

Using WebRequest API.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question