As blazor does not access to the network (it calls JavaScript to access the network), this would be done in JavaScript. The best place is to write a service worker, as these were designed to allow filtering and intercepting of all network requests. Currently
server workers can only be written in JavaScript.