- You must have wordpress and woocommerce installed and restful api enabled on localhost
- You must have https enabled on apache 2 server https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-apache-in-ubuntu-16-04
- Add Header set Access-Control-Allow-Origin "*" to apache2 conf