cURL also returns no login in granabootdata
window.grafanaBootData = {
user: {“isSignedIn”:true,“id”:0,“login”:"",“email”:"",“name”:"",“lightTheme”:false,“orgCount”:0,“orgId”:2,“orgName”:"",“orgRole”:“Admin”,“isGrafanaAdmin”:false,“gravatarUrl”:"",“timezone”:“browser”,“locale”:“en-US”,“helpFlags1”:0,“hasEditPermissionInFolders”:true},
while this is from the browser
window.grafanaBootData = {
user: {"isSignedIn":true,"id":8,"login":"xx.xx@xxech.com","email":"xx.xx@xxech.com","name":"jec","lightTheme":true,"orgCount":1,"orgId":2,"orgName":"Client PCI","orgRole":"Admin","isGrafanaAdmin":false,"gravatarUrl":"/avatar/b7400e88876717d2f32e718a01a22b7d","timezone":"browser","locale":"en-US","helpFlags1":0,"hasEditPermissionInFolders":true},
i’m really confused how the browser gets it correctly and all other else doesn’t. can i see your XHR codes pls? mine is below:
function GetGrafana() {
var getRequest = {
method: 'GET',
mode: 'cors',
credentials: 'include',
withCredentials: true,
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer @Model.Token'
}
}
fetch('@Model.UrlDashboard', getRequest)
.then(resp => resp.text())
.then(function (response) {
var parent = $('#grafanaFrameDiv');
var strResp = response.replace('base href="/"', 'base href="@Model.GrafanaIntHost"' + '/');
var newElement = $(strResp);
$('#grafanaFrame').remove();
parent.append(newElement);
//}
})
.catch(error =>
console.error('Error:', error)
);
}
also do i have to enable auth.proxy? or turn it off? what’re your settings sir?