powerbi - PowerBI API 的 CORS 问题

标签 powerbi powerbi-embedded

我正在尝试通过调用以下端点来为报告生成嵌入 token ,但这让我遇到了 CORS 问题。

Failed to load https://api.powerbi.com/myorg/groups//reports//GenerateToken: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access. The response had HTTP status code 403.

power bi dashboard 中是否有任何设置或启用 CORS 并设置允许的来源?

最佳答案

如果您在服务器端代码中调用 power api,则不会出现 cors 问题。 powerbi 仪表板中无需更改设置。 如果可以,请分享代码片段。

关于powerbi - PowerBI API 的 CORS 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49518890/

相关文章:

powerbi - DAX 中的 CountIf 公式

powerbi - power bi 矩阵中的自定义聚合列

powerbi - CALCULATE(m, x=red) 与 CALCULATE(m, KEEPFILTERS(x=red)) 之间的差异

angular - 使用 Power REST API - 获取组中的页面时,有没有办法从报告中过滤掉 "Hidden"页面

powerbi - Power BI 传递参数到报表

sql-server - 与 OpenEdge 和 Power BI 的 ODBC 连接

powerbi - 每家公司的每日股价变化和价格返回

powerbi - Power BI嵌入式,直接查询,不刷新

Powerbi embedded - 导出为 pdf 并应用切片器/过滤器

azure - 状态 : Unauthorized (401) error while getting the reports from the workspace