Skip to content

Commit

Permalink
fix: correct report URL construct
Browse files Browse the repository at this point in the history
  • Loading branch information
tthvo committed Jul 10, 2024
1 parent 468828c commit cdc3be8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/app/Shared/Services/Report.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@ export class ReportService {
}
const headers = new Headers();
headers.append('Accept', 'application/json');
let url = recording.reportUrl;
if (!url.startsWith(this.login.authority)) {
url = `${this.login.authority}/${recording.reportUrl}`;
}
return fromFetch(url, {
let url = new URL(recording.reportUrl, document.location.href);

return fromFetch(url.toString(), {
method: 'GET',
mode: 'cors',
credentials: 'include',
Expand Down

0 comments on commit cdc3be8

Please sign in to comment.