From 3a0230464d1d281f0d232060059a6b9662609413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hans-J=C3=BCrgen=20Tappe?= Date: Wed, 11 Dec 2024 19:41:46 +0100 Subject: [PATCH] #25: Temporarily disable CORS proxying. --- lib/utils/url_functions.dart | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/utils/url_functions.dart b/lib/utils/url_functions.dart index 8dfd167..12f97a4 100644 --- a/lib/utils/url_functions.dart +++ b/lib/utils/url_functions.dart @@ -1,4 +1,3 @@ -import 'package:flutter/foundation.dart'; import 'package:url_launcher/url_launcher.dart'; class UrlFunctions { @@ -14,12 +13,12 @@ class UrlFunctions { static String proxy(String? url) { url ??= ''; - if (kIsWeb && - url.isNotEmpty && - ! url.startsWith('https://firebasestorage.googleapis.com') - ) { - url = 'https://corsproxy.io/?${Uri.encodeFull(url)}'; - } + // if (kIsWeb && + // url.isNotEmpty && + // ! url.startsWith('https://firebasestorage.googleapis.com') + // ) { + // url = 'https://corsproxy.io/?${Uri.encodeFull(url)}'; + // } return url; } } \ No newline at end of file