fetch("http://localhost:1337/api/data-dicts", { "headers": { "accept": "application/json", // "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6", // "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzQ0MDMxMzczLCJleHAiOjE3NDY2MjMzNzN9.FWwOQj0R91paBYDIptE1z0o4BZroJbHhgj1IFPTqw_Q", "content-type": "application/json", // "sec-ch-ua": "\"Microsoft Edge\";v=\"113\", \"Chromium\";v=\"113\", \"Not-A.Brand\";v=\"24\"", // "sec-ch-ua-mobile": "?0", // "sec-ch-ua-platform": "\"Windows\"", // "sec-fetch-dest": "empty", // "sec-fetch-mode": "cors", // "sec-fetch-site": "same-origin" }, "referrer": "http://localhost:1337/api/data-dicts", "referrerPolicy": "same-origin", "body": "{\"unionKey\":\"test\",\"value\":\"test\",\"desc\":\"test2\"}", "method": "POST", "mode": "cors", "credentials": "include" }).then(async (res)=>{ console.log(await res.text()); });