Skip to content

Commit

Permalink
chore: indique au service worker d’utiliser CORS pour fetch piano-ana…
Browse files Browse the repository at this point in the history
…lytics
  • Loading branch information
JalilArfaoui committed Jan 16, 2025
1 parent 565f110 commit 369ecbb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions site/source/entries/entry-sw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ offlineFallback({
setDefaultHandler(
new NetworkFirst({
cacheName: 'default-network-first',
fetchOptions: {
mode: 'cors',
credentials: 'include',
},
plugins: [
new ExpirationPlugin({
maxAgeSeconds: 3 * MONTH,
Expand Down

0 comments on commit 369ecbb

Please sign in to comment.