Mason
Suddenly getting CORS errors sending requests to my backend express server
Hi,
I've configured an accepted origin for requests in each of my environments as follows:
As you can see the allowed origin for this environment is stored in the variables, e.g. https://myapp-frontend-dev.up.railway.app/
I've double checked this is loaded fine in the backend, and before today wasn't having any issues with this, but now all requests to my backend from the frontend service fail with:
My frontend can no longer interact with the backend at all, including in environments where the code hasn't been touched in days.
Anyone aware what could be the issue?
16 replies
Using internal networking to communicate with Websocket
Project ID: 2818bb01-9898-4d1c-8065-06e6404b3ed8
Hi folks, suspect I'm doing something particularly silly, but I have a React app hosted on Railway which connects to a websocket server deployed in the same environment as follows:
I notice that when I use the internal networking URL to connect to the websocket server, e.g.
Intialization fails:
Should this be possible? At least locally, if I use the Railway generated public URL of the Websocket server, the Websocket initialization and connection works fine.
81 replies