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
Percy6mo ago
Project ID: N/A
Saikat Das
Saikat Das6mo ago
No description
Brody
Brody6mo ago
whats the status code on that request?
Saikat Das
Saikat Das6mo ago
200ok
Saikat Das
Saikat Das6mo ago
No description
Saikat Das
Saikat Das6mo ago
I made a simple api and host it in railway....now i can't access that api through 'fetch'
Solution
Brody
Brody6mo 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 Das6mo ago
Yeah it is working fine now.