santthosh / aws-es-kibana

AWS ElasticSearch Kibana Proxy
Apache License 2.0
323 stars 134 forks source link

sigv4 host causing failure in aws #27

Closed cgballance closed 6 years ago

cgballance commented 7 years ago

looks like the Host var that you put the ENDPOINT in is now being parsed in ES.(on host it is https). i fixed by: npm install url -save require('url') in index.js add line to index.js var TARGETHOST = url.parse(TARGET).hostname; Use that for populating Host header.

inno-ron commented 7 years ago

Ran into this as well, you can just change it to: request.headers['Host'] = ENDPOINT.split("://")[0];

santthosh commented 6 years ago

This has been fixed with #23