CORS policy error RUBY API

byhtadaTRIAL

a year ago

Hello
I deployed the server yesterday and everything was fine. And today the error started to appear:

I didn't change anything. The warm-up and restart do not help. I transferred another project to you and it's the same there.

What to do?

7 Replies

a year ago

what status code are you getting back from the railway provided domain when you make a call to it?



byhtadaTRIAL

a year ago

The railway logs do not write anything at the same time.


a year ago

There is an error code, I got 503 from visiting that link, for this issue, please read this docs page -

https://docs.railway.app/guides/fixing-common-errors


byhtadaTRIAL

a year ago

I can't find the PORT variable, please help

Attachments


byhtadaTRIAL

a year ago

Although maybe we misunderstood each other. My front-end is located on github (still in development). And here is the backend on the railway. And when I turn to the back from the front, then CORS arises https://byhtada.github.io/ro_web2/


a year ago

please carefully read the docs page i linked.


CORS policy error RUBY API - Railway Help Station