diff --git a/projects/lib/src/oauth-service.ts b/projects/lib/src/oauth-service.ts index dce071f9..91defd54 100644 --- a/projects/lib/src/oauth-service.ts +++ b/projects/lib/src/oauth-service.ts @@ -1310,7 +1310,7 @@ export class OAuthService extends AuthConfig implements OnDestroy { this.debug('sessionCheckEventListener'); - if (!issuer.startsWith(origin)) { + if (this.checkOrigin && !issuer.startsWith(origin)) { this.debug( 'sessionCheckEventListener', 'wrong origin',