더북(TheBook)

코드 3-18 서버에 요청을 하는 쪽에서 얻는 curl 에러 응답

$ curl -X OPTIONS localhost:3030/questions \
    -H "Access-Control-Request-Method: PUT" \
    -H "Access-Control-Request-Headers: content-type" \
    -H "Origin: https://not-origin.io" -verbose

*   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 404 Not Found
< content-type: text/plain; charset=utf-8
< content-length: 15
< date: Fri, 19 May 2023 00:28:19 GMT
< 
* Connection #0 to host localhost left intact
Route not found
신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.