enable cors in railway app
glitchdetected
TRIALOP

2 years ago

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

Solved

16 Replies

2 years ago

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


glitchdetected
TRIALOP

2 years ago

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


glitchdetected
TRIALOP

2 years ago

and all of them are using typescript


2 years ago

please see the express docs -


glitchdetected
TRIALOP

2 years ago

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


2 years ago

you would need to configure the cors middleware correctly


glitchdetected
TRIALOP

2 years ago

1330354590578901003


glitchdetected
TRIALOP

2 years ago

like in the middlewares?


glitchdetected
TRIALOP

2 years ago

file?


glitchdetected
TRIALOP

2 years ago

folder i mean


2 years ago

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


glitchdetected
TRIALOP

2 years ago

jwt could be wrong


glitchdetected
TRIALOP

2 years ago

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


2 years ago

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


glitchdetected
TRIALOP

2 years ago

ok


2 years ago

!s


Status changed to Solved brody over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...