0
내 JQuery와 웹 페이지에서 아약스 호출 elasticsearch 사용하려고하지만 그것이 작동되도록하는 데 실패
는 ... 여기 elasticsearch 아약스 호출 오류
내 아약스 쿼리입니다 이 내 elasticsearch.yml에http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-credentials: true
http.cors.allow-headers: "X-Requested-With, Content-Type, Content-Length, Authorization"
http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE
그리고 이것은 콘솔 크롬 dev에 나에게주는 것입니다 :
(index):451 (3) [Object, "error", DOMException: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:9200/_s…, callee: function, Symbol(Symbol.iterator): function]
Request URL:http://localhost:9200/_search
Referrer Policy:no-referrer-when-downgrade
Request Headers
Provisional headers are shown
Accept:application/json, text/javascript, */*; q=0.01
Content-Type:application/x-www-form-urlencoded; charset=UTF-8
Origin:https://domain.ovh
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.33 Safari/537.36
Form Data
view source
view URL encoded
{"query":{"match":{"_all":10}},"fields":"DEPET"}:
당신의 입력
나는 귀하의 제안을 시도하고 나는 그물을 가지고 : : ERR_CONNECTION_REFUSED –