passport-facebook
passport-facebook copied to clipboard
getting the asynchronous response from /auth/facebook/callback
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?
The same issue
The same issue
The same issue