I am using free tier web service running node js.
My code sets up a server with express and then also create a socket.io server instance.
Running my server locally on http://localhost:8080, I can connect from my front end development server running at http://localhost:3000 and from the same front end code hosted at vercel with an entirely different domain. both can connect without returning cors errors.
My backend server is now hosted on render and I can access API routes such as [renderURL]/currentgame or /users which display appropriate information.
however my client is unable to connect via websocket to the socket.io server.
in the below image i am connecting to my server running locally with the expected response header.
in the below image i am connecting to my server running on render, i noticed the x-frame-options is SAMEORIGIN and wonder if this is an issue.
i do have a render ticket open which was responded to stating because its a cors issue its an issue with my application but I’m at a loose end as to what it could be.
ticket number: 68684