← 返回首页

HTTP 预检请求(Preflight)

当请求满足以下条件之一时会触发 OPTIONS 预检请求:
  • 使用了 PUT、DELETE、CONNECT、OPTIONS、TRACE、PATCH 方法
  • Content-Type 不是 application/x-www-form-urlencoded、multipart/form-data、text/plain
  • 自定义了请求头