Fetch 后台接受不到是什么缘故

#1
fetch(url,{
  method:"post",
  headers:{
    "Content-type":"application:/x-www-form-urlencoded:charset=UTF-8"
  },
  body:"name=test"
})

这样写了, 之后 为什么后台输出 $_POST['name'] 的时候的时候是 null

Request Method:OPTIONS

headers 里面显示的是 OPTIONS 是不是这个缘故

#2

哦 自己解决了 是 "Content-type":"application/x-www-form-urlencoded" 对这块不了解,不明白为什么这么设置

#3

设置了正确的Content Type,服务器才会知道要怎么解析你提交的数据,再把数据传给其它处理模块