En este post vamos a aprender a solucionar el error »Due to possible incorrect server settings, it appears that HTTP Basic Authorization may not work for the REST API on this site – the web server is not sending authorization headers to WordPress.»
Para solucionar este error simplemente tenemos que añadir la siguiente línea en al archivo .htaccess
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
Es importante saber que esa linea hay que añadirla justo después de la siguiente línea:
RewriteEngine On
Es decir, el htacces quedaría del siguiente modo:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress