From 4eed56193ffde622f2fed26fcbf3ada79518ccc0 Mon Sep 17 00:00:00 2001 From: Andreas Christou Date: Tue, 22 Nov 2022 13:31:47 +0000 Subject: [PATCH] DataSourceWithBackend - Set postResource method to POST (#59114) Set postResource method to POST --- packages/grafana-runtime/src/utils/DataSourceWithBackend.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts b/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts index 15c2bd947e3..b35a7485368 100644 --- a/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts +++ b/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts @@ -299,7 +299,7 @@ class DataSourceWithBackend< const result = await lastValueFrom( getBackendSrv().fetch({ ...options, - method: 'GET', + method: 'POST', headers: options?.headers ? { ...options.headers, ...headers } : headers, data: data ?? { ...data }, url: `/api/datasources/${this.id}/resources/${path}`,