다음과 같은 응답을 받게 된다.
코드 3-15 curl OPTIONS 요청에 대한 응답
* Trying 127.0.0.1:3030...
* Connected to localhost (127.0.0.1) port 3030 (#0)
> OPTIONS /questions HTTP/1.1
> Host: localhost:3030
> User-Agent: curl/8.0.1
> Accept: */*
> Referer: rbose
> Access-Control-Request-Method: PUT
> Access-Control-Request-Headers: content-type
> Origin: http://not-origin.io
>
< HTTP/1.1 200 OK
< access-control-allow-headers: content-type
< access-control-allow-methods: POST, DELETE, GET, PUT
< access-control-allow-origin: http://not-origin.io
< content-length: 0
< date: Tue, 18 Apr 2023 06:27:00 GMT
<
* Connection #0 to host localhost left intact