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.


  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.
  3. If your site uses a caching plugin or some other system which modifies the standard .htacess config, you can also try inserting: 
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]


By default, the rewrite line should look like this: 
RewriteRule ^index.php$ - [L]

Was this article helpful?

Related Articles