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`

猜你喜欢

转载自www.cnblogs.com/or2-/p/9205048.html