WaspW
Wasp2y ago
mb23

Server is blocked by CORS policy

Hi there, I have the following problem:
I have deployed my app to Railway (server, PostgreSQL and client). The app is "live" but if I want to sign up as a user it tells me: Network error and I get the following issue in the Browser console:

signup:1 Access to XMLHttpRequest at 'https://server-production-...railway.app/auth/me' from origin 'https://client-production-....railway.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
index-Bpk1JXu_.js:57

GET https://server-production-....railway.app/auth/me net::ERR_FAILED 401 (Unauthorized)


I have already added all env variables to server and client and am wondering what I can do about this issue?
image.png
image.png
Was this page helpful?