我正在获取这样的 URL:
fetch(url, {
  mode: 'no-cors',
  method: method || null,
  headers: {
    'Accept': 'application/json, application/xml, text/plain, text/html, *.*',
    'Content-Type': 'multipart/form-data'
  },
  body: JSON.stringify(data) || null,
}).then(function(response) {
  console.log(response.status)
  console.log("response");
  console.log(response)
})
我的API预计的数据是multipart/form-data,所以我使用content-type这种类型的...但它给我的状态代码:400的响应。
我的代码有什么问题?