Frontend and Backend Integration Issue in one Railway project
lionking1994
PROOP

4 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 Bounty

10 Replies

4 months ago

Does it work if you use the public URL instead of the private URL?


4 months ago

That is the issue ^^


lionking1994
PROOP

4 months ago

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


lionking1994
PROOP

4 months ago

when I try to use pub url, I am getting this issue


4 months ago

Have fun with that Medim 😂


4 months ago

Now you have to allow the frontend domain in your backend cors config @soccer_fan


4 months ago

What is your frontend URL?


4 months ago

1433279493396496400


4 months ago

oh yeah there's also that


4 months ago

could u remove that extra '/' @soccer_fan ?


Loading...