[Passportjs][Angular5] No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access
问题 I am trying to integrate Nodejs backend api with Angular. I have implemented passpor-google, passport-github, passport-twitter strategy on the backend application. My backend App url is http://localhost:3000 My Frontend App url is http://localhost:4200 Passport Routes authRouter.get('/github', passport.authenticate('github')); authRouter.get( '/github/callback', passport.authenticate('github', { failureRedirect: 'http://localhost:4200/login', }), authController.sendJWTToken ); When i send