502 Error
amonion
TRIALOP

a year ago

I'm having 502 error accessing my node J's app in railway, seeing error:

Access to XMLHttpRequest at 'https://my-app.up.railway.app/api/v1/users/login/' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Please I need help, I've added cors policy to allow access from all origin and still having the same error

Solved

0 Replies

amonion
TRIALOP

a year ago

Deployment ID: 07f1d38


maddsua
HOBBY

a year ago

It looks like your node app is either failed to deploy or removed. Could you attach some logs or dashboard screenshots?


amonion
TRIALOP

a year ago

Okay


amonion
TRIALOP

a year ago

1323711212554289200


amonion
TRIALOP

a year ago

Should I provide anything else


amonion
TRIALOP

a year ago

490008f0-fd3b-4289-867e-172f5fcd85f0


maddsua
HOBBY

a year ago

Are you sure you're trying to access the correct url? I can't do that from the url you have provided


amonion
TRIALOP

a year ago

Yes, I am connecting to the right URL, it was working earlier today, now the http log is showing 502



amonion
TRIALOP

a year ago

It's showing core policy error when I logged the response in my computer console


maddsua
HOBBY

a year ago

Still, following this url I cannot access it either (getting a "service failed to respond" error)


maddsua
HOBBY

a year ago

It looks like the app itself is returned those errors


amonion
TRIALOP

a year ago

Sir please clarify what you mean 🙏



amonion
TRIALOP

a year ago

Should fetch users, it works in my local host and was working earlier today


amonion
TRIALOP

a year ago

But not working now


brody
EMPLOYEE

a year ago

please see this docs section -


amonion
TRIALOP

a year ago

Thanks 👍, it worked, my custom domain port was not same with the port my app was listening to


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody 11 months ago


Loading...