From d3f99d349db59a6f694e111f6bf2dee7529a934a Mon Sep 17 00:00:00 2001 From: Unrud Date: Fri, 7 Jan 2022 23:23:53 +0100 Subject: [PATCH] Don't manually assemble origin --- radicale/web/internal_data/fn.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/radicale/web/internal_data/fn.js b/radicale/web/internal_data/fn.js index ef47d08..a61fd32 100644 --- a/radicale/web/internal_data/fn.js +++ b/radicale/web/internal_data/fn.js @@ -21,8 +21,7 @@ * @const * @type {string} */ -const SERVER = (location.protocol + '//' + location.hostname + - (location.port ? ':' + location.port : '')); +const SERVER = location.origin; /** * Path of the root collection on the server (must end with /)