title: WooCommerce rest api return woocommerce_rest_cannot_view always
body: <p>I have generated a consumer key and consumer secret. The website has SSL installed. I have also installed plugins required for JSON and REST services. This is how the url looks like:</p>
  
  <pre><code>https://&lt;url&gt;/wp-json/wc/v1/products
  </code></pre>
  
  <p>If you want to test</p>
  
  <pre><code>Consumer Key: ck_8add1dc9101f8793a731d6b9aeaadd319fbedf37
  Consumer secret: cs_18980264faa482536874e4544dfce9c090c7e927
  </code></pre>
  
  <p>When I am trying to get(GET) the product details using Basic Auth by using POSTMAN, a Chrome plugin, I get a JSON response like:</p>
  
  <pre><code>{
    "code": "woocommerce_rest_cannot_view",
    "message": "Sorry, you cannot list resources.",
    "data": {
      "status": 401
    }
  }
  </code></pre>
  
  <p>I have both the READ and WRITE permissions corresponding to the Consumer key.
  I'm testing this RestApi on PostMan RestClient and i disabled <code>SSL certificate verification</code> on this app settings</p>
  
  <p><a href="https://i.stack.imgur.com/LR6xb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LR6xb.png" alt="enter image description here"></a></p>