adambard/angular-elasticsearch-demo

Getting errors on search

Opened this issue · 3 comments

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

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

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

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