2017-06-07 2 views
1

SatellizerとGoogle Chromeブラウザに問題があります。SatellizerプロバイダChromeブラウザでログイン、AngularJS

最初は、対応するredirectUriと認可専用のAPI URLの両方で、すべての認可プロバイダを実装して設定したと思います。

私の問題は、次のようであり、それはGoogle Chromeでのみ私に起こると私はFacebookやGoogleのを使ってログインしようとする時間の70%が、私は、コンソールに次のエラーを取得することです:

Error: OAuth redirect has occurred but no query or hash parameters were > found. They were either set during the redirect, or were removed-typically by a routing library-before Satellizer could read it.

それが何かに影響を与える可能性の場合には、

$authProvider.facebook({ 
    clientId : 'myFabecookClientId(already defined)', 
    responseType: 'token', 
    name: 'facebook', 
    url: 'endPoint auth/facebook del API del backend', 
    authorizationEndpoint: 'https://www.facebook.com/v2.5/dialog /oauth', 
    redirectUri: window.location.origin +'/', 
    requiredUrlParams: ['display', 'scope'], 
    scope: ['email'], 
    scopeDelimiter: ',', 
    display: 'popup', 
    oauthType: '2.0', 
    popupOptions: { width: 580, height: 400 } 
}); 

$authProvider.google({ 
    clientId: 'myGoogleClientId(already defined)', 
    responseType : 'code', 
    name: 'google', 
    url : 'Endpoint auth/google del API del backend', 
    authorizationEndpoint: 'https://accounts.google.com/o/oauth2/auth', 
    redirectUri : window.location.origin + ',' 
}); 

私は、リモートサーバーを実行上のバックエンドと、それは二つに作業を分割しているので、ローカルでのフロントエンドを持っている:

はまた、私はプロバイダの持っている設定を取り付けました。

Firefoxでは問題なく私を許可するので、好奇心が強いです。

答えて

0

ローカルサーバではなくリモート(パブリック)サーバでフロントエンドを実行してみてください。 ChromeにCORSの問題がある可能性があります

関連する問題