These are chat archives for datatypevoid/vulgar

30th
Mar 2017
Ayz Pat
@AyzPat
Mar 30 2017 15:27

guys using passportjs with nodejs and angular 2 and getting this error XMLHttpRequest cannot load

https://accounts.google.com/o/oauth2/v2/auth?response_type=code&redirect_ur…575.apps.googleusercontent.com. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4007' is therefore not allowed access. The response had HTTP status code 405.

XMLHttpRequest cannot load https://www.facebook.com/dialog/oauth?response_type=code&redirect_uri=http%…%3A4007%2Fauth%2Ffacebook%2Fcallback&scope=email&client_id=4ndddddd. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4007' is therefore not allowed access.