-
Notifications
You must be signed in to change notification settings - Fork 714
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Prevents links to navigate to outside of the server URL (#2501)
* fix: Prevents links to navigate to outside of the server URL * get oauth redirect urls from server
- Loading branch information
1 parent
e3132c0
commit 256a195
Showing
7 changed files
with
71 additions
and
0 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
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,17 @@ | ||
import { dispatch } from '../../store'; | ||
import { WEBVIEW_ALLOWED_REDIRECTS_CHANGED } from '../../ui/actions'; | ||
import { Server } from '../common'; | ||
import { getServerUrl } from './urls'; | ||
|
||
export const setServerAllowedRedirects = ( | ||
allowedRedirects: Server['allowedRedirects'] | ||
): void => { | ||
console.log('setServerAllowedRedirects', allowedRedirects); | ||
dispatch({ | ||
type: WEBVIEW_ALLOWED_REDIRECTS_CHANGED, | ||
payload: { | ||
url: getServerUrl(), | ||
allowedRedirects, | ||
}, | ||
}); | ||
}; |
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
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