From 5d0a53731c18d8708f0303ca923cab73f055f875 Mon Sep 17 00:00:00 2001 From: "christian.vidal" Date: Fri, 27 Mar 2026 12:05:11 +0100 Subject: [PATCH] fix(fetch): change proxy to allorigins for more reliable dropbox access --- src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index a9e253e..173cd12 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -27,9 +27,9 @@ export default function App() { try { setIsLoadingDefault(true); setDefaultLoadError(null); - // Using corsproxy.io to avoid Dropbox CORS issues + // Using allorigins proxy to avoid Dropbox CORS issues and improve reliability const dropboxUrl = 'https://dl.dropboxusercontent.com/scl/fi/nkyabkq2jdwfudof2ovrl/Data-Matrix.xlsx?rlkey=1cz5fuabwipqqivihii7sybw0&st=io0g4wvb&dl=1'; - const proxyUrl = `https://corsproxy.io/?${encodeURIComponent(dropboxUrl)}`; + const proxyUrl = `https://api.allorigins.win/raw?url=${encodeURIComponent(dropboxUrl)}`; const response = await fetch(proxyUrl); if (!response.ok) {