Re: [w3c/ServiceWorker] Add cookie accessor/setter methods? (#707)

@frvge Here you go:
```// Intercept fetch
self.addEventListener('fetch', event => {
    if (event.request.url.startsWith(self.location.origin)) { // adapt this line
        // forward request
        event.respondWith(fetch(event.request, {
            // omit cookie transmission
            credentials: 'omit'
        }));
    }
});
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/707#issuecomment-463792458

Received on Thursday, 14 February 2019 20:56:25 UTC