
I am getting 204 error after getting 200 response. What to do?

2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Naimish MakwanaRank #324 · 7.7K reputationPosted Jan 31, 2023, 11:30 PM EST
Hello Parthib,
preflighted request. The main goal is to determinate whether the actual request is safe to send. Cross-site requests are preflighted since they may have implications to user data.
A CORS preflight request is a CORS request that checks to see if the CORS protocol is understood.
It is an
OPTIONSrequest using two HTTP request headers: Access-Control-Request-Method and Access-Control-Request-Headers, and the Origin header.A preflight request is automatically issued by a browser when needed.
IF your Startup.cs file contain below line than comment it
Please refer below link for the solution.
https://stackoverflow.com/questions/61279426/problems-with-cors-response-to-preflight-in-dotnet-core-3-1
Thanks
Naimish
Pasang TamangRank #449 · 5.6K reputationPosted Jan 31, 2023, 11:52 PM EST
Hi,
It looks you are trying to navigate page? Please refer to below link to understand about 204
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204.
Regards,
Pasang