fix(fetch): change proxy to allorigins for more reliable dropbox access

This commit is contained in:
christian.vidal
2026-03-27 12:05:11 +01:00
parent af89d5b437
commit 5d0a53731c
+2 -2
View File
@@ -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) {