passport-facebook icon indicating copy to clipboard operation
passport-facebook copied to clipboard

getting the asynchronous response from /auth/facebook/callback

Open devendra1102 opened this issue 8 years ago • 3 comments

Hello i have implemented the /facebook/callback in such a way that it will return a json reponse from node server. When I am calling this api from jquery ajax call(from the client side), the browser shows the error:

XMLHttpRequest cannot load https://www.facebook.com/dialog/oauth?response_type=code&redirect_uri=http%…3A3000%2Fauth%2Ffacebook%2Fcallback&scope=email&client_id=xxxxxxxxxxxxxxxx. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. How to overcome this problem?

devendra1102 avatar Aug 20 '16 10:08 devendra1102

The same issue

nguyenhaduchieu avatar Jul 10 '17 04:07 nguyenhaduchieu

The same issue

maxval1 avatar Jul 31 '17 15:07 maxval1

The same issue

matiullah-karimi avatar Mar 17 '18 04:03 matiullah-karimi