Skip to content

Commit

Permalink
Revert "fix/FEC-14016: ignore backend referrer since its cached (#797)"
Browse files Browse the repository at this point in the history
This reverts commit 7d91dd4.
  • Loading branch information
MosheMaorKaltura authored Jun 30, 2024
1 parent a850226 commit ba89b48
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/common/utils/kaltura-params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ function getReferrer(): string {
referrer = window.parent.document.URL;
} catch (e) {
// unfriendly iframe
referrer = document.referrer;

// try to get it from originalReferrer supplied by backend
// or fallback to document referrer
referrer = window.originalRequestReferrer || document.referrer;
}
return referrer;
}
Expand Down

0 comments on commit ba89b48

Please sign in to comment.