Multiple redirects when accessing Kibana via iFrame

#1

I came across this comment in the GitHub page regarding multiple redirects...

Usually what causes this is having multiple cookies for the same "domain" and "name", but with different values for "path". If you open the developer tools in Chrome, then click on the Application tab, then expand the Cookies section, and click on the domain, do you have multiple cookies with the name "sid"? If so, you can fix this issue by clearing all of them.

  1. I am sending a pre flight authentication request (AJAX) to obtain a cookie to the /api/security/v1/login endpoint
  2. On receipt of the cookie, I then send Set-Cookie header back to client with the kibana cookie. (I have changed the name from sid to kibana)
  3. The cookie is set correctly on the client, however, when you iFrame a kibana page in (such as dashboards), you see it load in (so cookie auth looks like it's working), then does multiple redirects to https://DOMAIN:5601/login?next=%2Fs%2FSPACE%2Fapp%2Fkibana
  4. I then see 'Too Many Redirects' error.
  5. Any ideas as to a solution?

Thanks :slight_smile:

Kibana Version: 6.5.4

(Bhavya R M) #2

@Larry_Gregory

Thanks,
Bhavya

(system) closed #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.