From f2f137bf1d1f8318cddb16e973593f886dc1a48c Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Thu, 16 Jan 2025 14:02:54 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20indique=20au=20service=20worker=20d?= =?UTF-8?q?=E2=80=99utiliser=20CORS=20pour=20fetch=20piano-analytics?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/source/entries/entry-sw.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site/source/entries/entry-sw.ts b/site/source/entries/entry-sw.ts index 14f9a9761..bb03e4810 100644 --- a/site/source/entries/entry-sw.ts +++ b/site/source/entries/entry-sw.ts @@ -77,6 +77,10 @@ const networkFirstPiano = new Route( return url.hostname === 'tag.aticdn.net' }, new NetworkFirst({ + fetchOptions: { + credentials: 'include', + mode: 'cors', + }, cacheName: 'piano-cache', plugins: [ new ExpirationPlugin({