docs icon indicating copy to clipboard operation
docs copied to clipboard

Monorepo Tutorial: CORS Error

Open echohack opened this issue 11 months ago • 0 comments

I think there could be a bug with CORS with the go server in the monorepo tutorial, since I got

Access to resource at 'https://backend-production-94d4.up.railway.app/sse' from origin 'https://frontend-production-7e91.up.railway.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

when trying to access the service, and the go server correctly processed the request.

Overall it's not a huge deal since the point of the tutorial is just to teach how to wire up services in a monorepo, but it's kind of annoying that the service doesn't work properly once you reach the end.

echohack avatar Mar 12 '25 07:03 echohack