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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9bb2a-1878.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9bb2a-1878.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?