Overview

The WooCommerce REST API allows external systems to connect into your WooCommerce store from external software. This can be used to syncronise products, conduct inventory control, Point of Sale (POS) integration and store testing (such as Robot Ninja). As Plesk uses an NGINX proxy in front of the Apache web server by default, the authentication header may not be passed through correctly and could cause issues with third party services.

Instructions

  1. Edit your .htaccess for your WordPress / WooCommerce site and replace the index.php rewrite with the following:
    RewriteRule ^index.php$ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
    
  2. Save the .htaccess and retry your external authentication.

Note: By default, the rewrite line should look like this: 

RewriteRule ^index.php$ - [L]

Was this article helpful?

Related Articles