Options pre-request returns 204?

Request URL: http://xxxxxxx.com:3000
Request Method: OPTIONS
Status Code: 204 No Content
Remote Address: 127.0.0.1:3000
Referrer Policy: no-referrer-when-downgrade

read some related articles, but did not say that options request is the cause of 204 , and the solution

Why does it cause 204 instead of 200 Please thank you

https://blog.csdn.net/mevicky.


options is a pre-check request to confirm whether subsequent requests can arrive and does not need body to return anything, so why use 200 instead of 204 .
as for what you said, it is manually set to 204 because options requests are usually handled by third-party route modules, and you do not need to deal with such details.

Menu