Enable CORS fetch mode for storage requests

The load balancer now returns a specific `Access-Control-Allow-Origin`
instead of a wildcard, so credentials can be included by default.
This enables `maxEntrySize` enforcement for storage.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Rosa Gutierrez
2026-03-03 15:59:25 +00:00
parent 1855490f80
commit 49a86c7cbf
+2 -1
View File
@@ -42,7 +42,8 @@ TurboOffline.addRule({
maxAge: 60 * 60 * 24 * 7,
networkTimeout: 2,
maxEntrySize: 2 * 1024 * 1024, // 2MB covers about 95% of all Fizzy blobs
maxEntries: 500
maxEntries: 500,
fetchOptions: { mode: "cors" }
})
})