Viewing 5 replies - 16 through 20 (of 20 total)
  • @matttaylor, Thank you, Absolutely correct.

    Hi,
    i have same issue, plz provide me solution about it and give the information how can you generating access token for oAuth2.

    I am also facing the same problem, I have tired to change the .htaccess file as follow.

     # BEGIN WordPress
        <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{HTTP:Authorization} ^(.*)
        RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
        RewriteBase /speedy/
    
        RewriteRule ^index\.php$ - [L]
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule . /speedy/index.php [L]
        </IfModule>
    
        # END WordPress

    anyhow it gives always 401 unauthorized response. Any help please.

    try this plugin it’s working.
    https://github.com/WP-API/Basic-Auth

    Thanks you so much for the reply, I just got success with this plugin.
    Could you please tell me, which is the correct plugin for production.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘WP API can't create a post’ is closed to new replies.