Skip to content

Commit

Permalink
test: include credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Apr 14, 2024
1 parent c3961cc commit d0aca6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/frontend/lib/serviceworker.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ async function updateAssetCache() {
// These items must be cached for service worker to complete installation
await assetCache.addAll(["APP_CSS_PATH", "APP_JS_PATH", "/offline"]);

return assetCache;
return assetCache.map(
(url) => new Request(url, { credentials: "include" }),
);
} catch (error) {
console.error("Error updating asset cache", error);
}
Expand Down

0 comments on commit d0aca6d

Please sign in to comment.