Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does it support elasticsearch 6? #19

Closed
ctrngk opened this issue Sep 24, 2018 · 2 comments
Closed

Does it support elasticsearch 6? #19

ctrngk opened this issue Sep 24, 2018 · 2 comments

Comments

@ctrngk
Copy link

ctrngk commented Sep 24, 2018

I test the innerSearch-starter-app demo and it works very well. However, the demo server is running elasticsearch 5.x. When I run 6.x, I encountered following error in browser:

When I roughly look into the source code, I am not able to fix it. I suspect it does not support 6.x.
FYI https://www.elastic.co/blog/strict-content-type-checking-for-elasticsearch-rest-requests

@PierreKircher
Copy link

PierreKircher commented Sep 25, 2018

thats a elasticsearch config setting not exactly innersearch based -
add :

http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-headers: "X-Requested-With, Content-Type, Content-Length, X-User Authorization"

http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE.
http.detailed_errors.enabled: true

to the end of your elasticsearch.yml and call it a day
beware THIS IS HIGHLY INSECURE!!!
and should just be used in local dev

for production get xpack or some other security mechanism

@TrimA74
Copy link
Collaborator

TrimA74 commented Sep 27, 2018

vue-innersearch works with Elasticsearch 6

@TrimA74 TrimA74 closed this as completed Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants