diff --git a/src/entrypoints/service_worker.ts b/src/entrypoints/service_worker.ts index 3641b5fa2c60..ac0425d0cf34 100644 --- a/src/entrypoints/service_worker.ts +++ b/src/entrypoints/service_worker.ts @@ -42,6 +42,8 @@ const initRouting = () => { request.destination === "image", new StaleWhileRevalidate({ cacheName: "brands", + // CORS must be forced to work for CSS images + fetchOptions: { mode: "cors", credentials: "omit" }, plugins: [ new ExpirationPlugin({ maxAgeSeconds: 60 * 60 * 24 * 30,