cors允許的方法和contype-type

c3tc3tc3t發表於2018-06-20

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`

 

相關文章