WordPress REST API 401 Unauthorized 인증 오류 해결법 (2026)
$ curl -X POST https://example.com/wp-json/wp/v2/posts \ -H “Content-Type: application/json” \ -d ‘{“title”:”테스트 포스트”,”status”:”draft”}’ HTTP/1.1 401 Unauthorized { “code”: “rest_cannot_create”, “message”: “Sorry, you are not allowed to create posts as this user.”, “data”: { “status”: 401 } } WordPress REST API를 처음 연동할 때 거의 100% 마주치는 응답이다. 나도 자동 포스팅 스크립트를 처음 만들던 날, 이 … 더 읽기