Fetch sends post request, but the backend cannot receive data. Body is undefined.

Front end:

:

Mar.20,2021

set such a content-type,body cannot be such a json string, but should be a string like a=1&b=2. In addition, your background can print req, to see if the request has been received. If it is received, it is a relationship that your bodyparser has not set.


Cross-domain pre-check request to learn about

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-1b3c678-346da.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-1b3c678-346da.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?