-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const GSIB_INDICATOR = "menlo-view.menlosecurity.com" | ||
|
||
export const useStagingLink = (link?: string): string | undefined => { | ||
// NOTE: Prepend the menlo link if this is on GSIB because | ||
// GSIBs do a security scan that will fail otherwise with a TOO_MANY_REDIRECTS | ||
// error when we access the raw link directly. | ||
if (window.name.includes(GSIB_INDICATOR)) { | ||
Check failure Code scanning / CodeQL Incomplete URL substring sanitization High
'
menlo-view.menlosecurity.com Error loading related location Loading |
||
return `https://safe.menlosecurity.com/${link}` | ||
} | ||
|
||
return link | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters