mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
If OpenTSDB is 3rd-party hosted (or by another team) and does not support OPTIONS, send the request as POST (urlencoded)
This commit is contained in:
parent
be2e2577b8
commit
29185eeef7
@ -72,6 +72,9 @@ function (angular, _, dateMath) {
|
|||||||
data: reqBody
|
data: reqBody
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// In case the backend is 3rd-party hosted and does not suport OPTIONS, urlencoded requests
|
||||||
|
// go as POST rather than OPTIONS+POST
|
||||||
|
options.headers = { 'Content-Type': 'application/x-www-form-urlencoded' };
|
||||||
return backendSrv.datasourceRequest(options);
|
return backendSrv.datasourceRequest(options);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user