mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-08-29 01:58:51 +02:00
web: preserve port in cors proxy url (#10234)
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
@@ -124,7 +124,7 @@ export const PrivacySettings: SettingsGroup[] = [
|
||||
if (!result) return;
|
||||
try {
|
||||
const url = new URL(result);
|
||||
Config.set("corsProxy", `${url.protocol}//${url.hostname}`);
|
||||
Config.set("corsProxy", url.href);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
showToast("error", strings.invalidCors());
|
||||
|
||||
Reference in New Issue
Block a user