DEOGEE
Explore posts from serversCors issues only on railway
My server was working fine and suddenly i started getting cors error "117:1 Access to fetch at 'https://create-video-production.up.railway.app/create-video' from origin 'https://www.shortsauto.ai/' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled."
i have this line of code 'app.use(cors());' in my server
The code works fine with no cors issues in other services such as render , it worked fine in railway too but suddenly stopped working
22 replies