Status 401 Error
-
Hi,
I am working on one the website which has an SSL https://watsuniq.com/. I also have created the REST customer and private key. I get a return response in postman as follow
{
“code”: “woocommerce_rest_cannot_view”,
“message”: “Sorry, you cannot list resources.”,
“data”: {
“status”: 401
}
}I have already tried updating the htaccess file to this
#BEGIN WordPress
<IfModule mod_rewrite.c>
#METALOCATOR: This line added to allow basic authentication under FastCGI
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]#METALOCATOR: This line added to allow basic authentication under FastCGI
#METALOCATOR: Establishes an environment variable used by the plugin only for URLs beginning with wp-json/
RewriteRule ^wp-json/.* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule>Still don’t luck with the Authentication process.
For postman I sent the keys through basicauth
The page I need help with: [log in to see the link]
The topic ‘Status 401 Error’ is closed to new replies.