CORS Error with GoogleIDX in Express.js Project
'm encountering a CORS error when using GoogleIDX in my Express.js project. My application can't access https://workstations.cloud.google.com/devshell/gateway/oauth due to CORS restrictions.
Enabling CORS on the server is preferred over a proxy server. I'm using express and cors with the following code (example provided if needed).
I've also tried adding the Access-Control-Allow-Origin header but without success.
Could you investigate and suggest solutions?
Thanks,
Kartik Kumar
Additional Information (Optional):
Error Message: GET https://workstations.cloud.google.com/devshell/gateway/oauth?... 403 (Forbidden)
Using latest express and cors versions.
This removes extra spaces while keeping the content concise.