-
Notifications
You must be signed in to change notification settings - Fork 512
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
Connecting with a different port with username and password #414
Comments
Just following up, I decided to add
and try the chrome extension but I am still facing this issue. It is not getting any of my data. The only difference I can see is that I am not using port 9200, it would be helpful if we can use other ports other than 9200. Unless there is a different issue, but I would appreciate help understanding the issue. All the solutions or work arounds for these issues brought me to a dead end so not sure what's wrong. EDIT: Sorry one more thing in this note
http.port: 9200
http.cors.allow-origin: "chrome-extension://jopjeaiilkcibeohjdmejhoifenbnmlh/"
http.cors.enabled: true
http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
http.cors.allow-credentials: true But in this example, the port is still 9200? Can this be elaborated. |
@NumbahzGit Your value for:
should match the browser URL's domain you're using this on. You can try this with:
Mixed content error is wrt running your Elasticsearch on a Both errors are not related to the port you're running your Elasticsearch on. |
@siddharthlatest Thank you, I appreciate the response! :) Thank you for pointing that out, I didn't realize this issue with chrome extensions, first time doing this. Just wanted to also confirm that my cluster being on a different port is not an issue right? We have So sending And if I wanted to access through the browser it would just be
|
Yes, port wouldn't the issue here.
I believe that this should work, may be remove the trailing |
Hello! first here are my settings on ES.
http.cors.enabled: true
http.cors.allow-origin: 'https://opensource.appbase.io'
http.cors.allow-headers: X-Requested-With,Content-Type,Content-Length,Authorization
http.cors.allow-credentials: true
My ES cluster is remote and I am trying to access it through the web browser.
I also have it running on a different port, not 9200.
i tried using
https://mydomain:myport
, and i also triedhttps://username:password@mydomain:myport
but I still get a "Unable to connect", what might I be doing wrong?Actually...just something weird I noticed is on firefox i get "NetworkError when attempting to fetch resource." saying "You are trying to load http content over https. You might have to enable mixed content of your browser https://kb.iu.edu/d/bdny" but that didn't change the error. On Chrome I get "Unable to connect".
My biggest concern is, does this only work if your ES cluster is on port 9200? Is there anything I can do so it accepts my port number on ES? We aren't using 9200 for security reasons and if it has to be on 9200, I will not be able to use this.
EDIT wrong url, that was for something else.
The text was updated successfully, but these errors were encountered: