角形oauth2-oidc CORS ADFS

角形oauth2-oidc CORS ADFS,adfs,angular-oauth2-oidc,Adfs,Angular Oauth2 Oidc,我正在使用angular-oauth2-oidc库连接到ADFS,但出现以下错误: 我正在使用以下代码: app.component.ts: config.issuer = 'https://myserver/adfs'; config.clientId = 'https://myapp/'; config.redirectUri = window.location.origin; config.scope = 'openid profile'; thi

我正在使用
angular-oauth2-oidc
库连接到ADFS,但出现以下错误:

我正在使用以下代码:

app.component.ts:

    config.issuer = 'https://myserver/adfs';
    config.clientId = 'https://myapp/';
    config.redirectUri = window.location.origin;
    config.scope = 'openid profile';
    this.oauthService.configure(config);
    this.oauthService.loadDiscoveryDocument();

也许你解决了这个问题?我也有同样的问题。