JavaScript: intercepting requests from workers I’m trying to intercept and modify POST requests to an API made by a website.