I am trying to embed an iframe in my web application. I don't want to show login screen to my user So I tried to make an ajax call using below code.
$(document).ready(function(){
$.ajax({
type: "PUT",
url: "https://nlxesdev01.corp.cvscaremark.com:5601/api/security/v1/login",
contentType: 'application/x-www-form-urlencoded',
dateType: 'jsonp',
xhrFields: { withCredentials: true },
username: "xxxx",
date: '{}',
password: "xxxxx",
crossDomain: true,
headers: {"Access-Control-Allow-Origin": "*"},
success: function (data) {
alert("Hi");
}
});
});
But I am getting below issue. Can you please help me with this?
lukas
(Lukas Olson)
July 24, 2018, 11:38pm
2
Hi @RajiReddy , please see these posts:
You can pass the Authorization header as Joe suggests using an nginx proxy.
Here is the relevant section of my nginx.conf:
server {
listen 4443 ssl; # the default was port 443
server_name tim-virtual-machine.local;
ssl_certificate /home/tim/domain.crt;
ssl_certificate_key /home/tim/domain.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
…
Hi,
We have shield protected kibana dashboard embedded as iframe in our UI. We need to be able to pass authentication headers to the dashboard so that the reports can display without the user having to put credentials again. How can we pass the auth headers to kibana from UI?
I saw these posts and made an Ajax call as shown above but still couldn't figure out the issue. Is there any sample code with you guys?
lukas
(Lukas Olson)
July 26, 2018, 11:53pm
4
Unfortunately I'm not aware of any sample code.
system
(system)
Closed
August 23, 2018, 11:53pm
5
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.