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
0 Replies
It looks like your node app is either failed to deploy or removed. Could you attach some logs or dashboard screenshots?
Are you sure you're trying to access the correct url? I can't do that from the url you have provided
Yes, I am connecting to the right URL, it was working earlier today, now the http log is showing 502
It's showing core policy error when I logged the response in my computer console
Still, following this url I cannot access it either (getting a "service failed to respond" error)
a year ago
please see this docs section -
Thanks 👍, it worked, my custom domain port was not same with the port my app was listening to
a year ago
!s
Status changed to Solved brody • 11 months ago
