Not able to get the example working #302
Unanswered
shashankchaudhry
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks!
I was trying to get the example app to work. My steps for reproduction are:
The issue I see is that once I log in, I get a runtime error in the login screen. The error message is:
Access to fetch at 'https://accounts.google.com/o/oauth2/v2/auth?client_id=&redirect_uri=https%3A%2F%2Fssh.cloud.google.com%2Fdevshell%2Fgateway%2Foauth&response_type=code&scope=email&state=' (redirected from 'https://3001-78b17566-.cloudshell.dev/api/login') from origin 'https://3001-78b17566-.cloudshell.dev' 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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I also see that the network traffic I see in my local run is very different from the calls I see in the official deployment on the vercel server. I'm wondering if I'm doing something wrong or if some new code has been pushed, that breaks the example.
Beta Was this translation helpful? Give feedback.
All reactions