我正在使用angularx-social-login,一切正常但是,但是在控制台中我总是收到此消息导航到https://accounts.google.com/o/oauth2/iframe。糟糕的是,当这个导航发生时我松开了控制台日志,我的应用程序总是google和facebook iframes。
{
position: absolute;
width: 1px;
height: 1px;
left: -9999px;
display: none;
}

<iframe aria-hidden="true" id="ssIFrame_google" sandbox="allow-scripts allow-same-origin" src="https://accounts.google.com/o/oauth2/iframe#origin=http%3A%2F%2Flocalhost%3A4200&rpcToken=221822800.96570766&clearCache=1" style="position: absolute; width: 1px; height: 1px; left: -9999px; display: none;"></iframe>
&#13;
您可以看到我的代码
import {
SocialLoginModule,
AuthServiceConfig,
} from 'angularx-social-login';
import {getAuthServiceConfigs} from './AuthServiceProvide';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
SocialLoginModule.initialize(getAuthServiceConfigs())
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {
}
export function getAuthServiceConfigs() {
let config = new AuthServiceConfig(
[
{
id: FacebookLoginProvider.PROVIDER_ID,
provider: new FacebookLoginProvider('')
},
{
id: GoogleLoginProvider.PROVIDER_ID,
provider: new GoogleLoginProvider('')
},
]
);
return config;
}
&#13;