CORS request is preflighted, but it seems like it should not be

前端 未结 2 1003
自闭症患者
自闭症患者 2020-12-01 16:42

The following cross-origin POST request, with a content-type of multipart/form-data and only simple headers is preflighted. According to the W3C spec, unless I am reading i

2条回答
  •  不知归路
    2020-12-01 17:07

    My guess is that the "boundary" on the Content-Type header is causing issues. If you are able to reproduce this, it should be filed as a browser bug, since the spec states that the Content-Type header check should exclude parameters.

提交回复
热议问题