title: Unable to connect VendHQ (POS) to WooCommerce (WP)
body: <p>I have spent many days on trying to figure this out, and does it appears to be a common issue.  I have read many other posts on the same issue.  I have tried all the solutions that I could find, and yet I am still getting the same results - cannot successfully connect my client's VendHQ (POS) to my their WooCommerce shop (WordPress 5.2.4, PHP 7.2).  I have contacted VendHQ for help but their solution, as with others, did not work.  </p>
  
  <p>What Have I Tried:</p>
  
  <ol>
  <li><p>Followed the instructions from VendHQ and created my WooCommerce REST API keys and put them in the VendHQ connection setup.  This gave the initial error "woocommerce_rest_cannot_view, Sorry, you cannot list resources, 401"</p></li>
  <li><p>I added the following code to my .htaccess file as was suggested a few times but sadly did not fix the issue:</p></li>
  </ol>
  
  <pre><code>    # BEGIN WordPress
      SetEnvIf Authorization "(.)" HTTP_AUTHORIZATION=$1
      RewriteEngine On
      RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
      RewriteBase /
      RewriteRule ^index.php$ - [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]
      # END WordPress
  </code></pre>
  
  <ol start="3">
  <li>I modify the apache httpd.conf file as was suggested a couple times to AllowOverride All instead of the default value of None, and again no success.  I added the code below to my apache file:
  "/etc/apache2/conf.d/includes/pre_main_global.conf" </li>
  </ol>
  
  <pre><code>    &lt;Directory "/var/www/"&gt;
          Options Indexes FollowSymLinks
          AllowOverride All
          Require all granted
      &lt;/Directory&gt;
  </code></pre>
  
  <p>I am not super knowledgable with Apache and manipulating directives because I know how dangerous it can be.  However, this one came up a few times and seemed to be straight forward. Once I updated the .conf file and restarted the Apache server, I still could not make the connection. </p>
  
  <ol start="4">
  <li>Finally, I added more code to my .htaccess file: </li>
  </ol>
  
  <pre><code>    Header always set Access-Control-Max-Age 1728000
      Header always set Access-Control-Allow-Origin: "*"
      Header always set Access-Control-Allow-Methods: "GET,POST,OPTIONS,DELETE,PUT"
      Header always set Access-Control-Allow-Headers: "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,C$"
      Header always set Access-Control-Allow-Credentials true
      Header always set Access-Control-Allow-Origin: "https://my_client_shop.com/"
  </code></pre>
  
  <p>With all of this in place I am still not able to connect the two systems BUT now I got a new error: </p>
  
  <pre><code>"We are unable to connect your WooCommerce store. Your website does not allow connections with Authorization Headers in the Vend API."
  </code></pre>
  
  <p>I thought that last change would have fixed this.  Anyone seen this issue with Authorization Headers error?</p>
  
  <p>I tested the WC API keys in my Chrome browser:</p>
  
  <pre><code>https://my_client_shop.com/wp-json/wc/v2/system_status?consumer_key=ck_389f08cda9f8a802b366b1de8cb562cba95e462c&amp;consumer_secret=cs_65fcd907905f9d8c64b38a7dd60de4f034526ff2 
  </code></pre>
  
  <p>And it displayed the json file details.  Without the keys I get the "cannot list 401" error again.  So I assume from this the keys are in fact valid.</p>
  
  <p>So it seems we are getting closer but I am out of ideas.</p>
  
  <p>Finally, my client's shop website is on a multisite, if that makes a difference.</p>
  
  <p>So I am hoping someone else went through all this and was able to actually find a solution that works, and can share it :)  Or point out what I may have missed or have in error.  Much appreciated for any and all suggestions.</p>