For solving authentication issue you need to install basic auth plugin from github https://github.com/WP-API/Basic-Auth You need to install in wordpress as a plugin and then activate this plugin. There are two ways to install it on wordpress First Way: Go to the WP-API Github page https://github.com/WP-API/Basic-Auth 1. Click on clone or Download button on Github (Left side Green Button) 2. Download Zip File and Upload as a plugin (yourwordpressdomain.com/wp-admin/plugin-install.php) 3. Activate this plugin (problem solved) Second Way: 1. Go to the installation directory or your wordpress site ( cd /var/www/wordpress) 2. Visit wp-content folder (cd wp-content) 3. Visit plugin folder ( cd plugin ) 4. Run sudo git clone https://github.com/WP-API/Basic-Auth.git 5. Reach to Wordpress dashboard and activate JSON basic Authentication plugin