From b4ec1711c779915f869caea30004b5017ae790fb Mon Sep 17 00:00:00 2001 From: teknixstuff4 Date: Fri, 24 Apr 2026 17:48:05 +0100 Subject: [PATCH] Allow using without a CORS proxy (#1011) CORS can be disabled, or the server can be configured to send CORS headers. So, it would be useful to be able to skip the CORS proxy. --- src/equicordplugins/fileUpload/constants.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/equicordplugins/fileUpload/constants.ts b/src/equicordplugins/fileUpload/constants.ts index 5934a3be9..167f0d47e 100644 --- a/src/equicordplugins/fileUpload/constants.ts +++ b/src/equicordplugins/fileUpload/constants.ts @@ -11,5 +11,8 @@ export function normalizeCorsProxyUrl(url?: string): string { } export function toProxiedUrl(url: string, corsProxyUrl = CORS_PROXY): string { + if (corsProxyUrl == "none") { + return url; + } return `${normalizeCorsProxyUrl(corsProxyUrl)}?url=${encodeURIComponent(url)}`; }