10 months ago
Hello
I am trying integrating frontend and backend in one railway project. But I am getting issue in this part. I used backend's private url as environment value of frontend. But it is not connecting.
Plz help me to fix this problem
10 Replies
10 months ago
Does it work if you use the public URL instead of the private URL?
10 months ago
That is the issue ^^
Access to fetch at 'https://dwgtosvg-jt-backend-production.up.railway.app//api/balancedcad/convert-to-svg' from origin 'https://dwgtosvg-jt-frontend-production.up.railway.app' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.Understand this error
index-DPv81Lct.js:173 POST https://dwgtosvg-jt-backend-production.up.railway.app//api/balancedcad/convert-to-svg net::ERR_FAILED
10 months ago
Have fun with that Medim 😂
10 months ago
Now you have to allow the frontend domain in your backend cors config @soccer_fan
10 months ago
What is your frontend URL?
10 months ago

10 months ago
oh yeah there's also that
10 months ago
could u remove that extra '/' @soccer_fan ?