Anonymous - 2024-06-29

Originally posted by: jarkt

Perhaps this code at the top of the service worker is a workable solution without causing conflicts with some workbox functions like pre- or runtime caching:

self.addEventListener('fetch', (event) => {
  if (event.request.mode === "navigate") {
    event.respondWith(
      fetch(event.request, {
        credentials: 'include'
      })
    )
  }
})