From 2f1b422db0c772060e4387e5b398796d8227062a Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 6 Jan 2017 12:28:22 +0100 Subject: [PATCH] Avoid CORS for background queue invokations --- .../install/files/js/WoltLabSuite/Core/BootstrapFrontend.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/BootstrapFrontend.js b/wcfsetup/install/files/js/WoltLabSuite/Core/BootstrapFrontend.js index 76cf96115a..3d90f1a28c 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/BootstrapFrontend.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/BootstrapFrontend.js @@ -30,6 +30,9 @@ define( * @param {object} options bootstrap options */ setup: function(options) { + // fix the background queue URL to always run against the current domain (avoiding CORS) + options.backgroundQueue.url = WSC_API_URL + options.backgroundQueue.url.substr(WCF_PATH.length); + Bootstrap.setup(); UiPageHeaderMenu.init(); -- 2.20.1