You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use the inputs.http plugin with Cookie authentication. The API I want to query data from requires a header called 'XSRF_TOKEN' with an authentication token as value in the query request. The value for this header can be retrieved by doing the following POST call:
The required token is returned as a cookie, but only if the Content-Type header is provided with the request. If no Content-Type header is set I receive an error.
Would it be possible to add a telegraf config option that takes a list of headers that are sent with the Cookie auth request (e.g. cookie_auth_headers={"Content-Type" = "application/json","Custom-Header" = "somevalue"})?
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to use the inputs.http plugin with Cookie authentication. The API I want to query data from requires a header called 'XSRF_TOKEN' with an authentication token as value in the query request. The value for this header can be retrieved by doing the following POST call:
The required token is returned as a cookie, but only if the Content-Type header is provided with the request. If no Content-Type header is set I receive an error.
Would it be possible to add a telegraf config option that takes a list of headers that are sent with the Cookie auth request (e.g.
cookie_auth_headers={"Content-Type" = "application/json","Custom-Header" = "somevalue"}
)?The text was updated successfully, but these errors were encountered: