Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS issue with google auth #174

Open
epot opened this issue Nov 7, 2020 · 0 comments
Open

CORS issue with google auth #174

epot opened this issue Nov 7, 2020 · 0 comments

Comments

@epot
Copy link

epot commented Nov 7, 2020

My project was previously working, but I am getting a CORS error when the pop up closes and the browser tries to redirect me to google:

Access to XMLHttpRequest at 'https://accounts.google.com/o/oauth2/auth?scope=profile+email&client_id=dfgdfgdfgl.apps.googleusercontent.com&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A4200%2Foauth2' 
(redirected from 'http://localhost:4200/api/authenticate/google') from origin 'http://localhost:4200' has been blocked by CORS policy: 
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

This was working before, do I need to change anything in the client side?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant