Hi Shachar,
By default, browsers don’t allow cross origin communication (http://en.wikipedia.org/wiki/Same_origin_policy). I suggest that you follow an approach similar to what is in the UI examples that are shipped with the Splunk SDK for JavaScript, i.e. go through a proxy - var http = new splunkjs.ProxyHttp( "/proxy" );
In addition to that, since your webserver is different from where Splunk is running, you will also need to tell your web server to handle these proxy requests and delegate them to the right address, i.e. Splunk’s management port.
For Apache, adding these 2 lines to httpd.conf does the trick.
SSLProxyEngine On
ProxyPass /proxy/ https://localhost:8089/
You will have to do something similar to your web server’s conf. Make sure to put the right host and port depending on your splunk configuration.
Hope this helps.
... View more