Skip to content

Commit

Permalink
fix: fix missing support of PUBLIC_URL in get-embed-info query
Browse files Browse the repository at this point in the history
Calls to the get-embed-info azure function will now be supported even
when the Azure Function is server from a server sub-directory (this is
required for the on-premises use case)
  • Loading branch information
csm-thu committed Oct 3, 2024
1 parent 943123b commit cdb8720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/powerbi/PowerBIService.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const getPowerBIDataWithServiceAccount = async (powerBIWorkspaceId, reportsIds)

return clientApi
.post(
GET_EMBED_INFO_URL,
`${process.env?.PUBLIC_URL}${GET_EMBED_INFO_URL}`,
{ reports: reportsIds, workspaceId: powerBIWorkspaceId },
{ headers: { 'csm-authorization': headers.Authorization } }
)
Expand Down

0 comments on commit cdb8720

Please sign in to comment.