Access-Control-Request-Method

요청 헤더 Access-Control-Request-Method는 실제 요청이 만들어질 때 클라이언트가 보낼 수도 있는 HTTP headers를 서버에게 알리기 위해 브라우저가 preflight request를 발급(issue)할 때 사용됩니다. 사전 요청(preflight request)은 항상 OPTIONS이며 실제 요청과 동일한 메소드를 사용하지 않으므로 이 헤더가 필요합니다.

Header type Request header
Forbidden header name yes

구문

Access-Control-Request-Method: <method>

지시어

<method>
HTTP request methods 중 하나. 예를 들어 GET, POST, 또는 DELETE.

예제

Access-Control-Request-Method: POST

명세

Specification Status Comment
Fetch
The definition of 'Access-Control-Request-Method' in that specification.
Living Standard Initial definition.

브라우저 호환성

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Access-Control-Request-MethodChrome Full support 4Edge Full support 12Firefox Full support 3.5IE Full support 10Opera Full support 12Safari Full support 4WebView Android Full support 2Chrome Android Full support YesFirefox Android Full support 4Opera Android Full support 12Safari iOS Full support 3.2Samsung Internet Android Full support Yes

Legend

Full support  
Full support

더보기