Skip to content

Commit

Permalink
refactor: check web origin
Browse files Browse the repository at this point in the history
  • Loading branch information
as-herzog committed Mar 15, 2021
1 parent 391d57e commit 0d7cd78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/cli/quickstarts.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,9 @@ func promptDefaultURLs(ctx context.Context, cli *cli, client *management.Client,
if confirmed := prompt.Confirm(formatURLPrompt(qsType)); confirmed {
a.Callbacks = append(a.Callbacks, _defaultURL)
a.AllowedLogoutURLs = append(a.AllowedLogoutURLs, _defaultURL)
a.WebOrigins = append(a.WebOrigins, _defaultURL)
if strings.EqualFold(qsType, QSSpa) {
a.WebOrigins = append(a.WebOrigins, _defaultURL)
}
shouldUpdate = true
}
if shouldUpdate {
Expand Down

0 comments on commit 0d7cd78

Please sign in to comment.