?
本文檔使用 php中文網(wǎng)手冊(cè) 發(fā)布
Access-Control-Request-Method
發(fā)出請(qǐng)求時(shí)報(bào)頭用于預(yù)檢請(qǐng)求讓服務(wù)器知道哪些 HTTP 方法的實(shí)際請(qǐng)求時(shí)將被使用。這個(gè)頭是必要的,因?yàn)轭A(yù)檢請(qǐng)求始終是一個(gè)OPTIONS
,并且不使用與實(shí)際請(qǐng)求相同的方法。
Header type | Request header |
---|---|
Forbidden header name | yes |
Access-Control-Request-Method: <method>
<method> HTTP 請(qǐng)求的方法之一,例如GET
,POST
,或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 |