Skip to content

Commit

Permalink
fix(reports): ensure reports generation URLs are prefixed by the serv…
Browse files Browse the repository at this point in the history
…er authority
  • Loading branch information
andrewazores committed May 9, 2024
1 parent fb3e691 commit ecb7394
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/Shared/Services/Report.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ export class ReportService {
}
const headers = new Headers();
headers.append('Accept', 'application/json');
return fromFetch(recording.reportUrl, {
let url = recording.reportUrl;
if (!url.startsWith(this.login.authority)) {
url = `${this.login.authority}/${recording.reportUrl}`;
}
return fromFetch(url, {
method: 'GET',
mode: 'cors',
credentials: 'include',
Expand Down

0 comments on commit ecb7394

Please sign in to comment.