elasticsearch-HQ icon indicating copy to clipboard operation
elasticsearch-HQ copied to clipboard

work with SSL connection

Open michaelgbw opened this issue 7 years ago • 2 comments

Sometimes we are in the production environment is often using search guard connection, then how do we let hq support SSL

michaelgbw avatar Apr 17 '17 08:04 michaelgbw

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 avatar Apr 17 '17 09:04 michaelgbw

@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

sreekanth-ragi avatar Sep 20 '17 17:09 sreekanth-ragi