I'm new to ElasticSearch and Kibana. I'm trying to use Kibana's REST API, but the response i get are redirections to /login whatever the request i try.
For example :
$ curl -v -u user:passwd -X GET "127.0.0.1:5601/demo/api/features" * Hostname was NOT found in DNS cache * Trying 127.0.0.1... * Connected to 127.0.0.1 (127.0.0.1) port 5601 (#0) * Server auth using Basic with user 'user' > GET /demo/api/features HTTP/1.1 > Authorization: Basic xxxxxxxx > User-Agent: curl/7.38.0 > Host: 127.0.0.1:5601 > Accept: */* > < HTTP/1.1 302 Found < location: /demo/login?nextUrl=/demo/api/features < kbn-name: kibana < content-type: text/html; charset=utf-8 < cache-control: no-cache < content-length: 0 < connection: close < Date: Thu, 26 Nov 2020 10:32:56 GMT < * Closing connection 0
I'm using v7.2.0 with Linux.
Could someone tell me what i'm doing wrong ?