'Error 401 with Woocomerce API on 2 different servers

We have a Woocommerce website on a shared server and an ERP software (dolibarr) on a private server.

We want to synchronize the website with the software by using REST API. It works when twice are on the same server... But we have a 401 error when we are using 2 different servers. I guess it's a Wordpress security configuration, SSL certificate or .htaccess issue...

I'm searching to solve this problem for a week, I tried MANY things but it still doesn't work... So please help me if you have an idea !



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source