Hello, i am trying to intergrate the Splunk Ui Toolkit into my own Splunk instace that is running on localhost.
I am using react to get a sessionkey with the following function:
Thank you for your answers. It turned out, I had to trust the ssl certificate.
Hi @yallami,
At a glance, do username and password contain special or unsafe characters? You may need e.g.:
{
username: encodeURIComponent(username),
password: encodeURIComponent(password),
output_mode: "json"
}
--you may also need to perform other sanity checks on username and password before passing them to encodeURIComponent. Check mdn etc. for examples.