You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue or Feature Request Description:
Currently workbox.precache isn't passing credentials along when fetching assets, which means that any requests that require, say, a valid cookie, will fail. 😢
It looks like this is because the PrecacheController is explicitly passing in null for fetchOptions to the fetchWrapper:
We hardcoded same-origin for precaching in the previous Workbox release (and in sw-precache), and it seemed to be non-controversial. Here's the v2 code:
Library Affected:
workbox-precaching@3.0.0-beta.0
Browser & Platform:
All browsers
Issue or Feature Request Description:
Currently
workbox.precache
isn't passing credentials along when fetching assets, which means that any requests that require, say, a valid cookie, will fail. 😢It looks like this is because the
PrecacheController
is explicitly passing innull
forfetchOptions
to thefetchWrapper
:workbox/packages/workbox-precaching/controllers/PrecacheController.mjs
Lines 207 to 211 in 08d323e
What I'd like to see is an API to pass
fetchOptions
down to the fetch wrapper, potentially on a per route / asset basis.Steps to Reproduce
workbox.precache.precacheAndRoute(...)
Let me know if there's any more info I could provide that'd be helpful! 🙇
The text was updated successfully, but these errors were encountered: