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
Percy12mo ago
Project ID: N/A
Saikat Das
Saikat DasOP12mo ago
No description
Brody
Brody12mo ago
whats the status code on that request?
Saikat Das
Saikat DasOP12mo ago
200ok
Saikat Das
Saikat DasOP12mo ago
No description
Saikat Das
Saikat DasOP12mo ago
I made a simple api and host it in railway....now i can't access that api through 'fetch'
Solution
Brody
Brody12mo 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 DasOP12mo ago
Yeah it is working fine now.
Want results from more Discord servers?
Add your server