Hi,
We are trying to log into an embedded dashboard in a react page using the '/api/security/v1/login' API. The API works properly and sets the 'sid' cookie but, the browser is not able to use it because the 'httpOnly' flag set to true. We have a work around where we submit a hidden form the timing is off and login doesn't actually happen automatically unless the page is refreshed.
Any thoughts on how to make auto-login work using the API?
Hi @weltenwort,
When we make the request (I'm on a team with @Sannj ), the browser shows that the cookie has been set. However, the iframe doesn't login and we can't see the cookie in the response. When we look at the set-cookie object, it has the httpOnly flag set to true, which we've been informed is probably what is stopping our auto-login.
Depending on the location where the page running the JavaScript is served from, you might have to adjust the CORS settings of Kibana. Note the credentials: 'include' setting of the request, which was crucial for getting the browser to persist the sid cookie.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.