{"id":7513,"date":"2015-07-18T03:25:06","date_gmt":"2015-07-18T03:25:06","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/07\/18\/satellizer-and-facebook-login-open-source-projects-sahat-satellizer\/"},"modified":"2015-07-18T03:25:06","modified_gmt":"2015-07-18T03:25:06","slug":"satellizer-and-facebook-login-open-source-projects-sahat-satellizer","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/07\/18\/satellizer-and-facebook-login-open-source-projects-sahat-satellizer\/","title":{"rendered":"Satellizer and Facebook login-open source projects sahat\/satellizer"},"content":{"rendered":"<p>I&#8217;m using rails and angular to build an app. I&#8217;m using satellizer to login in the app.<\/p>\n<p>Here is my devise configuration:<\/p>\n<pre><code>config.omniauth :facebook, \"xxx1\", \"secret\", :strategy_class =&gt; OmniAuth::Strategies::Facebook\n<\/code><\/pre>\n<p>On JS side:<\/p>\n<pre><code>$authProvider.loginUrl = '\/users\/sign_in';\n  $authProvider.facebook({clientId: 'xxx1', url: '\/users\/auth\/facebook', type: '2.0'});\n<\/code><\/pre>\n<p>When i choose login with fb a popup appears, then i authenticate, and finaly when the popup is close i got this error:<\/p>\n<pre><code>XMLHttpRequest cannot load https:\/\/graph.facebook.com\/oauth\/authorize?response_type=code&amp;client_id=804\u2026allback&amp;state=c2131db90c6208181da224094bc2043ac43be5507bc2be8a&amp;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. \n<\/code><\/pre>\n<p>Do you have any idea?<\/p>\n<p>Thanks in advance.<\/p>\n<p>Regards,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m using rails and angular to build an app. I&#8217;m using satellizer to login in the app. Here is my devise configuration: config.omniauth :facebook, &#8220;xxx1&#8221;, &#8220;secret&#8221;, :strategy_class =&gt; OmniAuth::Strategies::Facebook On JS side: $authProvider.loginUrl = &#8216;\/users\/sign_in&#8217;; $authProvider.facebook({clientId: &#8216;xxx1&#8217;, url: &#8216;\/users\/auth\/facebook&#8217;, type: &#8216;2.0&#8217;}); When i choose login with fb a popup appears, then i authenticate, and finaly [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7513","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7513"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7513\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}