Angular/Node/Express/Passport Cross Domain Problems - Enable CORS Passport Facebook Authentication
问题 It's been two days and a million tries to enable CORS when trying to authenticate a user with Facebook using Passport in NodeJS/Express. The error I get on Chrome is this: XMLHttpRequest cannot load https://www.facebook.com/dialog/oauth?response_type=code&redirect_uri=http%…%3A8080%2Fauth%2Ffacebook%2Fcallback&scope=email&client_id=598171076960591. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. The