mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-09 19:33:40 +00:00
Improve native redirect uri validation to allow https loopback addresses
This commit is contained in:
parent
b7e9ae266d
commit
53438d0c30
@ -11,7 +11,12 @@ export class RedirectPipe implements PipeTransform {
|
||||
uri.startsWith('http://localhost:') ||
|
||||
uri.startsWith('http://127.0.0.1') ||
|
||||
uri.startsWith('http://[::1]') ||
|
||||
uri.startsWith('http://[0:0:0:0:0:0:0:1]')
|
||||
uri.startsWith('http://[0:0:0:0:0:0:0:1]') ||
|
||||
uri.startsWith('https://localhost/') ||
|
||||
uri.startsWith('https://localhost:') ||
|
||||
uri.startsWith('https://127.0.0.1') ||
|
||||
uri.startsWith('https://[::1]') ||
|
||||
uri.startsWith('https://[0:0:0:0:0:0:0:1]')
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user