enable cors in railway app
glitchdetected
TRIALOP

a year ago

how do i enable cors in railway app and use it to communicate with my vercel app

Solved

16 Replies

a year ago

Thats something you need to do in your code, what web server framework are you using?


glitchdetected
TRIALOP

a year ago

express.js for my backend, next.js for my frontend, and discord.js for my bot


glitchdetected
TRIALOP

a year ago

and all of them are using typescript


a year ago

please see the express docs -


glitchdetected
TRIALOP

a year ago

the cors only work during localhost but not when its deployed publicly


a year ago

you would need to configure the cors middleware correctly


glitchdetected
TRIALOP

a year ago

1330354590578901000


glitchdetected
TRIALOP

a year ago

like in the middlewares?


glitchdetected
TRIALOP

a year ago

file?


glitchdetected
TRIALOP

a year ago

folder i mean


a year ago

sorry but please see the docs i linked above, we aren't able to provide coding support here


glitchdetected
TRIALOP

a year ago

jwt could be wrong


glitchdetected
TRIALOP

a year ago

do you know how i can generate a jwt in railway's cli?


a year ago

that has nothing to do with the railway cli, or railway in general


glitchdetected
TRIALOP

a year ago

ok


a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...