I'm using Wordpress 4.7.1
with Woocommerce 2.6.13
plugin with enabled REST API. I was created user credentials from console plugin UI with read_write
permissions.
Now I'm trying GET products using OAuth1:
service return 200 OK, credentials are right.
then I'm trying to DELETE some product:
or trying to create new product:
service return 401 Unauthorized.
Whats wrong?
UPD1: .htaccess file:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress