adambard / angular-elasticsearch-demo

63 stars 35 forks source link

Getting errors on search #5

Open Apurva1590 opened 7 years ago

Apurva1590 commented 7 years ago

Hello Adam, I am going through your tutorial about elasticsearch, actually I am new to this and ust atarted learning it, I found this tutorial really nice end to end but I am getting some errors. I am done up to building search engine and now I stucked at UI part, I opened the page in the browser but not getting any results. Here is the error : error

Apurva1590 commented 7 years ago

Please help me as soon as as possible, I am waiting for your reply. Thank you !

adambard commented 7 years ago

Since you are sending cross-domain requests, your browser will refuse to co-operate unless your elasticsearch endpoint is configured to send an appropriate Access-Control-Allow-Origin header.

See https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-http.html

Apurva1590 commented 7 years ago

Hello Adam,

I resolved this issue by just switching on CORS plugin in chrome. And it is all working now. Thanks a lot Adam, this helped me a lot.

Regards Apurva