We are going to have an application server and Splunk server in different domains (and behind different firewalls). I would like to use CORS to allow Javascript running on a client loaded from our application server to make API calls to a Splunk server.
Every example I've been able to find uses code like this to initialize the Splunkjs API:
var http = new splunkjs.ProxyHttp("/proxy");
var service = new splunkjs.Service(http,{more parameters here});
I have not been able to figure out what to use instead of splunkjs.ProxyHttp.
My questions are:
1. Is there any example code out there that uses CORS to call the Splunk API (Javascript or not)?
2. What kind of object should I pass to the Service constructor when using CORS?
... View more