aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-06-10 16:08:50 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-04-25 15:46:00 +0000
commit7ae790bf8d9e60b25c587fa16fec7d6d4cc69432 (patch)
treef10344731c7249e8b4914c9d0f6881eb64b3cb5c
parent97d8b69fb20bc37e2aefe403d65586793b5b088b (diff)
downloadnextcloud-server-backport/52439/stable31.tar.gz
nextcloud-server-backport/52439/stable31.zip
fix(settings): Use axios directly for health check to preven URL sanitizingbackport/52439/stable31
When using Apache with `DirectorySlash` it will respond with 301 and the URL with trailing slash. But when using traefik as the reverse proxy it can not rewrite redirects, this leads to the problem that the Apache response is using HTTP in the redirect but the real server (traefik) is only listening on HTTPS. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
-rw-r--r--apps/settings/src/store/apps.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/settings/src/store/apps.js b/apps/settings/src/store/apps.js
index c58651a3cf5..e0068d3892e 100644
--- a/apps/settings/src/store/apps.js
+++ b/apps/settings/src/store/apps.js
@@ -5,6 +5,7 @@
import api from './api.js'
import Vue from 'vue'
+import axios from '@nextcloud/axios'
import { generateUrl } from '@nextcloud/router'
import { showError, showInfo } from '@nextcloud/dialogs'
import { loadState } from '@nextcloud/initial-state'
@@ -191,7 +192,7 @@ const actions = {
})
// check for server health
- return api.get(generateUrl('apps/files/'))
+ return axios.get(generateUrl('apps/files/'))
.then(() => {
if (response.data.update_required) {
showInfo(