Getting this error on client side

and this error on server side when I tried to edit the nginx code to allow for any origin.

Have already tried with railway and render.
I can access the websites fine in the browser, just isn't calling / forwarding actual requests properly.