Angularjs 否';访问控制允许原点';Woocommerce中的标题

Angularjs 否';访问控制允许原点';Woocommerce中的标题,angularjs,api,woocommerce,xmlhttprequest,cross-domain,Angularjs,Api,Woocommerce,Xmlhttprequest,Cross Domain,我正在尝试为我的移动应用程序使用WooCommerceAPI,但我遇到以下错误 XMLHttpRequest cannot load https://www.weburl.com/wc-api/v3/?consumer_key=ck_ckcomeshere&consumer_secret=cs_cscomeshere. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin

我正在尝试为我的移动应用程序使用WooCommerceAPI,但我遇到以下错误

XMLHttpRequest cannot load https://www.weburl.com/wc-api/v3/?consumer_key=ck_ckcomeshere&consumer_secret=cs_cscomeshere. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://192.168.1.105:8100' is therefore not allowed access.

我如何解决这个问题。非常感谢您的帮助。

虽然安全性不高,但这确实起到了作用。将以下行添加到
.htaccess
apache.conf
文件中

Header set Access-Control-Allow-Origin "*"