From 8ae02b4b7b936652a91becc876e644ca4d4d26de Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Tue, 22 Nov 2022 09:15:04 -0500 Subject: [PATCH] [v9.3.x] DataSourceWithBackend - Set postResource method to POST (#59117) DataSourceWithBackend - Set postResource method to POST (#59114) Set postResource method to POST (cherry picked from commit 4eed56193ffde622f2fed26fcbf3ada79518ccc0) Co-authored-by: Andreas Christou --- 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}`,