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
- 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]
- Save the .htaccess and retry your external authentication.
- 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}]