Commit 29185eee by Pablo Fischer

If OpenTSDB is 3rd-party hosted (or by another team) and does not support…

If OpenTSDB is 3rd-party hosted (or by another team) and does not support OPTIONS, send the request as POST (urlencoded)
parent be2e2577
...@@ -72,6 +72,9 @@ function (angular, _, dateMath) { ...@@ -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);
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment