[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 4eed56193f)
Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
This commit is contained in:
co-authored by
Andreas Christou
parent
0bb76df454
commit
8ae02b4b7b
@@ -299,7 +299,7 @@ class DataSourceWithBackend<
|
|||||||
const result = await lastValueFrom(
|
const result = await lastValueFrom(
|
||||||
getBackendSrv().fetch<T>({
|
getBackendSrv().fetch<T>({
|
||||||
...options,
|
...options,
|
||||||
method: 'GET',
|
method: 'POST',
|
||||||
headers: options?.headers ? { ...options.headers, ...headers } : headers,
|
headers: options?.headers ? { ...options.headers, ...headers } : headers,
|
||||||
data: data ?? { ...data },
|
data: data ?? { ...data },
|
||||||
url: `/api/datasources/${this.id}/resources/${path}`,
|
url: `/api/datasources/${this.id}/resources/${path}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user