JeffPeterson
How to get Caddy, React, and Express to play nice with each other?
Navigating to the Frontend:
https://railway-deployment-testing.up.railway.app/test
After navigating to the Frontend, there is a button which requests some API. Here is a simple
GET
endpoint in the Express backend:
/api/v1/helloWorld
That endpoint will throw the CORS error from the React application.
Currently, the backend service is unexposed publicly and I intend to only use internal networking. However, I did test that the backend service works when it has its own exposed domain.8 replies
Retrieving Django database sessions work locally behind a proxy but fail on Railway?
Unfortunately I had signed an NDA so it is not possible at the moment. But if you would like to look at a specific file I can do my best to provide it
46 replies