非常教程

HTTP参考手册

标题 | Headers

Access-Control-Request-Method

Access-Control-Request-Method发出请求时报头用于预检请求让服务器知道哪些 HTTP 方法的实际请求时将被使用。这个头是必要的,因为预检请求始终是一个OPTIONS,并且不使用与实际请求相同的方法。

Header type

Request header

Forbidden header name

yes

语法

Access-Control-Request-Method: <method>

指令

<method> HTTP 请求的方法之一,例如GETPOST,或DELETE

例子

Access-Control-Request-Method: POST

规范

Specification

Status

Comment

FetchThe definition of 'Access-Control-Request-Method' in that specification.

Living Standard

Initial definition.

浏览器兼容性

Feature

Chrome

Firefox

Edge

Internet Explorer

Opera

Safari

Basic Support

4

3.5

12

10

12

4

Feature

Android

Chrome for Android

Edge mobile

Firefox for Android

IE mobile

Opera Android

iOS Safari

Basic Support

2.1

(Yes)

(Yes)

1.0

(Yes)

12

3.2

HTTP

超文本传输协议( HTTP,HyperText Transfer Protocol ) 是互联网上应用最为广泛的一种网络协议。所有的 WWW 文件都必须遵守这个标准。