Issue with getting Kibana3 work with Shiel

Hi,

I am trying to get Kibana3 work with shield and getting the following error. I am running kibana3 on apache port 80.

This is the error I am getting.
XMLHttpRequest cannot load http://hostname:9200/_nodes. The 'Access-Control-Allow-Origin' header has a value 'http://hostname:9200' that is not equal to the supplied origin. Origin 'http://hostname is therefore not allowed access.

Is it possible to get both Kibana3 and Kibana 4 working at the same time with Shield ?

I tried both the following options without much luck.

http.cors.allow-origin: "http://hostname:80"

http.cors.allow-origin: "http://hostname:9200"

http.cors.enabled: true

http.cors.allow-credentials: true

#http.cors.allow-origin: "/.*/"

What's your apache config look like?

Hi Mark
Thanks for the follow up. I resolved it.I changed to port 80 in kibana config.js so that only one port is used for kibana and querying elasticsearch.

Thanks, Deepak