API での WordPress 自動投稿(POST)に失敗したときの解決策【備忘録】

「Due to a potential server misconfiguration, it seems that HTTP Basic Authorization may not work for the REST API on this site: `Authorization` headers are not being sent to WordPress by the web server. You can learn more about this problem, and a possible solution, on our GitHub Wiki.」 というメッセージがでて WordpressAPIが失敗する場合の解決策です。