File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,10 +114,6 @@ export const isTrustedDomain = (
114114 return false ;
115115 }
116116
117- if ( url . protocol != appUrl . protocol ) {
118- return false ;
119- }
120-
121117 if ( getEffectivePort ( url ) != getEffectivePort ( appUrl ) ) {
122118 return false ;
123119 }
Original file line number Diff line number Diff line change @@ -313,8 +313,7 @@ func (controller *OAuthController) getCookieDomain() string {
313313
314314func (controller * OAuthController ) isRedirectSafe (redirectURI string ) bool {
315315 v := validators .NewDomainValidator (validators.DomainValidatorOptions {
316- WithScheme : true ,
317- WithPort : true ,
316+ WithPort : true ,
318317 })
319318
320319 _ , err := v .SafeHostname (controller .runtime .AppURL )
@@ -333,7 +332,6 @@ func (controller *OAuthController) isRedirectSafe(redirectURI string) bool {
333332 controller .log .App .Debug ().Err (err ).Msg ("Failed to validate redirect URI" )
334333
335334 if errors .Is (err , validators .ErrInvalidURL ) ||
336- errors .Is (err , validators .ErrSchemeMismatch ) ||
337335 errors .Is (err , validators .ErrPortMismatch ) {
338336 return false
339337 }
You can’t perform that action at this time.
0 commit comments