diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-13 17:54:47 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-13 17:54:47 +0200 |
commit | ea021df9fa5e91006a4dabdb330f780c7e1e12cf (patch) | |
tree | 634a4c55db904dde477b46e0b5e5b5034631f538 /apps/federatedfilesharing | |
parent | 3e409fd34208afb69b270076e1f503c10101650a (diff) | |
download | nextcloud-server-ea021df9fa5e91006a4dabdb330f780c7e1e12cf.tar.gz nextcloud-server-ea021df9fa5e91006a4dabdb330f780c7e1e12cf.zip |
chore(deps): Update `@nextcloud/auth` to v2.4.0 and use `getCSPNonce` where possible
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r-- | apps/federatedfilesharing/src/main-admin.js | 4 | ||||
-rw-r--r-- | apps/federatedfilesharing/src/main-personal.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/federatedfilesharing/src/main-admin.js b/apps/federatedfilesharing/src/main-admin.js index 33eadc0af56..9e3e25fe7cb 100644 --- a/apps/federatedfilesharing/src/main-admin.js +++ b/apps/federatedfilesharing/src/main-admin.js @@ -3,13 +3,13 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ import Vue from 'vue' -import { getRequestToken } from '@nextcloud/auth' +import { getCSPNonce } from '@nextcloud/auth' import { translate as t } from '@nextcloud/l10n' import { loadState } from '@nextcloud/initial-state' import AdminSettings from './components/AdminSettings.vue' -__webpack_nonce__ = btoa(getRequestToken()) +__webpack_nonce__ = getCSPNonce() Vue.mixin({ methods: { diff --git a/apps/federatedfilesharing/src/main-personal.js b/apps/federatedfilesharing/src/main-personal.js index 368c438a7e9..a4ff1e6a669 100644 --- a/apps/federatedfilesharing/src/main-personal.js +++ b/apps/federatedfilesharing/src/main-personal.js @@ -3,12 +3,12 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ import Vue from 'vue' -import { getRequestToken } from '@nextcloud/auth' +import { getCSPNonce } from '@nextcloud/auth' import { translate as t } from '@nextcloud/l10n' import PersonalSettings from './components/PersonalSettings.vue' -__webpack_nonce__ = btoa(getRequestToken()) +__webpack_nonce__ = getCSPNonce() Vue.mixin({ methods: { |