Revert CORS fetch mode for Active Storage

CORS mode doesn't work with redirect-based Active Storage URLs
when the storage bucket uses wildcard Access-Control-Allow-Origin.
Relying on maxEntries alone until specific origin CORS is available.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Rosa Gutierrez
2026-02-21 09:20:47 +01:00
parent 67d629f722
commit 1855490f80
3 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -42,8 +42,7 @@ TurboOffline.addRule({
maxAge: 60 * 60 * 24 * 7,
networkTimeout: 2,
maxEntrySize: 2 * 1024 * 1024, // 2MB covers about 95% of all Fizzy blobs
maxEntries: 500,
fetchOptions: { mode: "cors", credentials: "omit" }
maxEntries: 500
})
})