0
我正在使用rails和angular来构建一个应用程序。我正在使用卫星在应用程序中登录。卫星和Facebook登录
这里是我的色器件配置:
config.omniauth :facebook, "xxx1", "secret", :strategy_class => OmniAuth::Strategies::Facebook
在JS方面:
$authProvider.loginUrl = '/users/sign_in';
$authProvider.facebook({clientId: 'xxx1', url: '/users/auth/facebook', type: '2.0'});
当我选择用FB一个弹出窗口登录,然后我进行身份验证,并finaly时弹出接近我得到这个错误:
XMLHttpRequest cannot load https://graph.facebook.com/oauth/authorize?response_type=code&client_id=804…allback&state=c2131db90c6208181da224094bc2043ac43be5507bc2be8a&scope=email. A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true. Origin 'http://localhost:3000' is therefore not allowed access.
你有什么想法吗?
在此先感谢。
问候,