Ajax's post request always reports 401, but there is nothing wrong with the interface I tested in postman. Why?

clipboard.png

clipboard.png

clipboard.png


Hello, landlord!
first of all, the status code of 401 is caused by the fact that authentication does not pass .
the reason for your problem is that Content-Type is of the wrong type and should be the way the form form is submitted. So you can change it to the following format and try

.
  

have you solved it? I also ran into

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