【トラブル解決】Application Passwordsで401(Unauthorized)

IT技術系

結論:.htaccessの設定をすること。

よく見たら、ユーザーページの設定でエラーが出てる。

.htaccessの設定が要るようです。

# BEGIN WordPress

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]

# END WordPress

無事につながりました(^^♪

 

参考

  • https://qiita.com/tsukue/items/c840d2050c42c16fc823
  • https://github.com/WordPress/application-passwords/wiki/Basic-Authorization-Header—-Missing