From efea8369bdee8076d3415900c56ba9e49fb2b644 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Thu, 9 Feb 2023 08:29:53 -0800 Subject: [PATCH] map: restore CSRF check --- lib/Controller/MapController.php | 2 -- src/components/top-matter/MapSplitMatter.vue | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/Controller/MapController.php b/lib/Controller/MapController.php index d7e4f145..4853430f 100644 --- a/lib/Controller/MapController.php +++ b/lib/Controller/MapController.php @@ -30,8 +30,6 @@ class MapController extends ApiBase { /** * @NoAdminRequired - * - * @NoCSRFRequired */ public function clusters(): JSONResponse { diff --git a/src/components/top-matter/MapSplitMatter.vue b/src/components/top-matter/MapSplitMatter.vue index 3f0c7715..feb4ab43 100644 --- a/src/components/top-matter/MapSplitMatter.vue +++ b/src/components/top-matter/MapSplitMatter.vue @@ -34,7 +34,7 @@ import { LMap, LTileLayer, LMarker, LPopup, LIcon } from "vue2-leaflet"; import { Icon } from "leaflet"; import { API } from "../../services/API"; -import axios from "axios"; +import axios from "@nextcloud/axios"; import "leaflet/dist/leaflet.css";