Recently I was asked a question by a user about the potential risks involved in using service workers. The point the user made was that Service worker sits in the browser, just like a “virus” ( yes that’s the term he used ) tracking everything and has the potential to leak data and share it with third party unwanted sites.
Now, this is a very serious question which actually hits on the credibility of whether service workers should be used at all on any site.
The service worker sits at a place where it has the control over every hit that leaves the browser to the server, so it has access to all the data which is being sent to a server, which includes passwords and other confidential information.
Let’s try to understand how these concerns are misplaced.
Tags: service worker