Issue with Kibana3 to work with Shield

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue with Kibana3 to work with Shield

deepakas
Hi,

I am trying to get Kibana3 work with shield and getting the following error.


XMLHttpRequest cannot load http://hostname:9200/_nodes. The
'Access-Control-Allow-Origin' header has a value
'<a href="http://hostname:9200'">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:  "/.*/"

Thanks,
Deepak S

--
Please update your bookmarks! We have moved to https://discuss.elastic.co/
---
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CA%2BUubii1V%2Bbqw96m937Ufyzao2iAibWf-VJe%2BFT_ti9AyRxHZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Issue with Kibana3 to work with Shield

deepakas
I got it working. Since http.cors.allow-origin allows only one ip I
had to set elasticsearch port to 80 in kibana/config.js and redirected
all the requests to 9200 using Apache Proxy.

On Sun, Jul 5, 2015 at 12:01 AM, Deepak Subhramanian
<[hidden email]> wrote:

> Hi,
>
> I am trying to get Kibana3 work with shield and getting the following error.
>
>
> XMLHttpRequest cannot load http://hostname:9200/_nodes. The
> 'Access-Control-Allow-Origin' header has a value
> '<a href="http://hostname:9200'">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:  "/.*/"
>
> Thanks,
> Deepak S



--
Deepak Subhramanian

--
Please update your bookmarks! We have moved to https://discuss.elastic.co/
---
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CA%2BUubigjHTig0-KnFRmqbpR05q%2BPcx%2BGhdEstQmho2mq1GZGJQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.