Front-End Back-End API Call Failure Error 204
johan-k77
HOBBYOP

a month ago

Error 204 when sending API request to the Back-End, said to be caused by CORS Credential. Previous independent testing made by calling the back-end directly from the browser and found that the endpoint shouldn't be using '/api', but no help even after changing the front-end's routing to the back-end with or without '/api', still the same Error 204. So, the front-end's routing ended up reverted back to using '/api' as original.

What had been done afterward (following the suggestion from the AI Agent): changing the front-end API component to allow credential (withCredentials: true)

Result: the same Error 204 and some axios error

Browser Console error message.PNG

Browser Network CORS Error Indication.PNG

Browser Network Error 204.PNG

Front-End API (;main;src;api;api.ts).PNG

$10 Bounty

1 Replies

Railway
BOT

a month ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway 27 days ago


Make sure you have set the Access-Control-Allow-Origins header on your responses from your API.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...