Backend Connection Issue in GitHub Codespaces Environment #110862
Replies: 5 comments 2 replies
-
I'm having the same issue. On my end, it seems that the frontend requests are being redirected to a GitHub login page. I'm not sure how to resolve this. Did you make any progress with this @tictaqqn? |
Beta Was this translation helpful? Give feedback.
-
Try sending the |
Beta Was this translation helpful? Give feedback.
-
Hello I wanted to start programming what should I do first??? |
Beta Was this translation helpful? Give feedback.
-
Hi @tictaqqn did you solve this issue? I'm having the same problem |
Beta Was this translation helpful? Give feedback.
-
I recently tackled a common issue in web development: CORS errors between a Vite + React frontend and a Node.js/Express backend in a GitHub Codespace. By configuring a proxy in vite.config.js, I was able to seamlessly connect the two without any CORS issues. If you’re facing a similar challenge, check out my solution here: |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Bug
Body
Issue Summary:
In our development environment, specifically using GitHub Codespaces, the frontend operates as expected when accessed through a URL ending in github.dev (replacing the traditional localhost:5174). Direct access to the backend, also via a github.dev URL (replacing localhost:3000), encounters no issues when accessed independently. However, attempts to connect to the backend from the frontend result in connection failure. This issue does not occur when the same setup is tested on a Mac environment with a traditional localhost setup, where the connection is established without any issues.
Environment:
Steps to Reproduce:
Expected Result:
Requests from the frontend should successfully reach the backend and be processed accordingly, despite the development environment being hosted on GitHub Codespaces.
Actual Result:
Connection attempts from the frontend to the backend fail, resulting in errors, suggesting a potential issue with the GitHub Codespaces networking or configuration setup.
Attempted Solutions:
Beta Was this translation helpful? Give feedback.
All reactions