我正在使用Power BI Javascript库将报告嵌入Angular应用程序中。当我在localhost上运行时,一切正常。发布到Azure应用服务后,所有报告都会失败,并显示错误
"message":"LoadReportFailed","detailedMessage":"Get report failed","errorCode":"403"
嵌入函数调用的配置
type: 'report',
id: this.reportId,
embedUrl: embedConfig.EmbedUrl,
pageView: "fitToWidth",
accessToken: embedConfig.EmbedToken.token,
tokenType: pbi.models.TokenType.Embed,
settings: {
filterPaneEnabled: false,
navContentPaneEnabled: true
}
};
Azure中缺少什么?