News for hackers. Stuff that matters.
Re:Tell HN: Service Workers === Browser Background Tasks by meiraleal on Wednesday August 30, 2023 @08:10AM (#37320811)
> If you want to intercept and modify a incoming json response for some specific url pattern, would a service worker be a good way to do so?

Yes but in this case you would need to setup a reverse proxy so your service worker and the intercepted page runs in the same domain. You could use cors-anywhere[1] for that.

[1] https://cors-anywhere.herokuapp.com/

There are no comments on this comment yet.