elasticsearch-HQ
elasticsearch-HQ copied to clipboard
work with SSL connection
Sometimes we are in the production environment is often using search guard connection, then how do we let hq support SSL
Because it is their own use, directly change backone source, so that each request is applied to the corresponding user name and password verification.
options.beforeSend = function(xhr) { xhr.setRequestHeader('Authorization', 'XXX'); xhr.withCredentials = true; xhr.setRequestHeader("Access-Control-Allow-Credentials", true); }
then,we check the elasticsearch.yml:
http.cors.allow-headers: "X-Requested-With, Content-Type, Content-Length, Authorization,Credentials"
that`s worked!
@michaelgbw : Could you share a little more documentation on which file you changed, we were able to zero in on a file, but we have not been able to get it to work with the change. Also for XXX what are you passing? something like username/password. After the change is there any change to how we connect to ES. Sorry for the barrage of questions, but would be really thankful if you could share information requested.
Thanks in Advance, Sreekanth