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


Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Naimish MakwanaPosted Feb 1, 2023, 4:30 AM
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 TamangPosted Feb 1, 2023, 4:52 AM
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