CORS problem in my project

I am getting a cors error in api calling
Solution:
this isnt a railway specific question so i will leave you with this docs page for express https://expressjs.com/en/resources/middleware/cors.html
Jump to solution
8 Replies
Percy
Percy11mo ago
Project ID: N/A
Saikat Das
Saikat Das11mo ago
No description
Brody
Brody11mo ago
whats the status code on that request?
Saikat Das
Saikat Das11mo ago
200ok
Saikat Das
Saikat Das11mo ago
No description
Saikat Das
Saikat Das11mo ago
I made a simple api and host it in railway....now i can't access that api through 'fetch'
Solution
Brody
Brody11mo ago
this isnt a railway specific question so i will leave you with this docs page for express https://expressjs.com/en/resources/middleware/cors.html
Saikat Das
Saikat Das11mo ago
Yeah it is working fine now.
Want results from more Discord servers?
Add your server