Fetch: post json data, application/json change to text/plain

前端 未结 3 1100
忘了有多久
忘了有多久 2020-12-14 02:45

I\'m using chrome 53.0.2785.116 m (64-bit).

I got the following headers on devtools. The problem is marked with a \"//\" comment. content type is really not allowing

3条回答
  •  北海茫月
    2020-12-14 03:00

    The mode:"no-cors" options appears to be the issue. Remove that option and the Content-Type should be set to "application/json"

提交回复
热议问题