cors允许的方法和contype-type

https://fetch.spec.whatwg.org/#cors-safelisted-request-header

get

head

post

 

text/plain

multipart/form-data

application/x-www-form-urlencoded

 

  • `Accept`
  • `Accept-Language`
  • `Content-Language`
  • `Content-Type` and whose valueonce extracted, has a MIME type (ignoring parameters) that is `application/x-www-form-urlencoded`, `multipart/form-data`, or `text/plain`

 

posted on 2018-06-20 17:50  c3tc3tc3t  阅读(697)  评论(0编辑  收藏  举报