I'm facing a problem using JQuery do access my Elastic Search server
using getJSON method on Firefox 3.5 and Google Chrome 4.1.249.104.
The problem is that, from Firefox 3.5 on, the XMLHttpRequest must use
the JSONP (https://developer.mozilla.org/en/HTTP_access_control) in
order to get data from the server, so, even when the server answers ok
(Internet Explorer works fine), the firefox browser doesn't allow the
content to be loaded, requesting some additional headers or actions
(options method before post).
Do you know this limitation?
As a workaround for the GET methods, I can put an aditional header on
the response (Access-Control-Allow-Origin: *). Is it possible to
configure in Elastic Search?
Actually, I am not too familiar with this Access-Control-Allow-Origin, is
this something the server returns in the header for a request? I can add a
feature that this can be configured in elasticsearch to be returned.
Regarding JSONP, just add callback with your json function to your request,
and elasticsearch will return the response in JSONP. I really should
document this :).
I'm facing a problem using JQuery do access my Elastic Search server
using getJSON method on Firefox 3.5 and Google Chrome 4.1.249.104.
The problem is that, from Firefox 3.5 on, the XMLHttpRequest must use
the JSONP (https://developer.mozilla.org/en/HTTP_access_control) in
order to get data from the server, so, even when the server answers ok
(Internet Explorer works fine), the firefox browser doesn't allow the
content to be loaded, requesting some additional headers or actions
(options method before post).
Do you know this limitation?
As a workaround for the GET methods, I can put an aditional header on
the response (Access-Control-Allow-Origin: *). Is it possible to
configure in Elastic Search?
Thanks! Actually, this JSONP stuff is new for me (I was developing
with flex/java/granite for 3 years). Reading that document I noticed
that, passing the header Access-Control-Allow-Origin to tell who might
access the page was enough to solve my problem of GETting content from
the server. So I hardcoded it in the NettyHttpChannel code to test and
it worked.
Now I will "unhardcode", use the callback parameter and tell you if it
works, ok?
Actually, I am not too familiar with this Access-Control-Allow-Origin, is
this something the server returns in the header for a request? I can add a
feature that this can be configured in elasticsearch to be returned.
Regarding JSONP, just add callback with your json function to your request,
and elasticsearch will return the response in JSONP. I really should
document this :).
I'm facing a problem using JQuery do access my Elastic Search server
using getJSON method on Firefox 3.5 and Google Chrome 4.1.249.104.
The problem is that, from Firefox 3.5 on, the XMLHttpRequest must use
the JSONP (https://developer.mozilla.org/en/HTTP_access_control) in
order to get data from the server, so, even when the server answers ok
(Internet Explorer works fine), the firefox browser doesn't allow the
content to be loaded, requesting some additional headers or actions
(options method before post).
Do you know this limitation?
As a workaround for the GET methods, I can put an aditional header on
the response (Access-Control-Allow-Origin: *). Is it possible to
configure in Elastic Search?
Thanks! Actually, this JSONP stuff is new for me (I was developing
with flex/java/granite for 3 years). Reading that document I noticed
that, passing the header Access-Control-Allow-Origin to tell who might
access the page was enough to solve my problem of GETting content from
the server. So I hardcoded it in the NettyHttpChannel code to test and
it worked.
Now I will "unhardcode", use the callback parameter and tell you if it
works, ok?
Actually, I am not too familiar with this Access-Control-Allow-Origin, is
this something the server returns in the header for a request? I can add
a
feature that this can be configured in elasticsearch to be returned.
Regarding JSONP, just add callback with your json function to your
request,
and elasticsearch will return the response in JSONP. I really should
document this :).
I'm facing a problem using JQuery do access my Elastic Search server
using getJSON method on Firefox 3.5 and Google Chrome 4.1.249.104.
The problem is that, from Firefox 3.5 on, the XMLHttpRequest must use
the JSONP (https://developer.mozilla.org/en/HTTP_access_control) in
order to get data from the server, so, even when the server answers ok
(Internet Explorer works fine), the firefox browser doesn't allow the
content to be loaded, requesting some additional headers or actions
(options method before post).
Do you know this limitation?
As a workaround for the GET methods, I can put an aditional header on
the response (Access-Control-Allow-Origin: *). Is it possible to
configure in Elastic Search?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.