4 ms·
You don't even need a service worker for that. Just fetch it. fetch("https://jstrieb.github.io/") So yea, other sites on his github pages are compromised,
by stackola 7y ago
You don't even need a service worker for that.
Just fetch it.
fetch("https://jstrieb.github.io/")
So yea, other sites on his github pages are compromised, that's true.
- zawerf 7y agoThe (malicious) goal I had in mind with service workers is to rewrite all other published pages: self.addEventListener('fetch', event => { event.respondWith( new Response('<h1>I murder kittens for fun</h1>', { headers: { 'Content-Type': 'text/html; charset=utf-8' } }) ); })