Egg still prompts csrf missing to ask configuration questions after setting up token

report an error

DELETE /customers/del/5] missing csrf token. See https://eggjs.org/zh-cn/core/security.html-sharpcsrf

config.js
    config.cors = {
        // {string|Function} origin: "*",
        allowMethods: "GET,HEAD,PUT,POST,DELETE,PATCH",
        credentials: true
      };
      xframe: {
          enable: false,
        },
        csrf: {
          headerName: "csrftoken",
          ignoreJSON: true, //  false true  content-type  `application/json` 
        },
        

whitelist is also set. The problem now is that all GET,PUT,POST can be passed, but DELETE cannot. The foreground request is axios.delete (ip +"/ customers/del/" + id)

.

I don"t understand! I hope the master will give me some advice!


check whether network doesn't have header with it


Why did I report 404 after setting it up like this?

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