我有一个Ionic 3应用程序,在其中我从网站上调用wordpress api值-我想在本地主机Ionic服务器上省略CORS,因为它告诉我以下Failed to load https://www.example.com/wp-json/wp/v2/posts?categories=9&per_page=100: The 'Access-Control-Allow-Origin' header contains multiple values 'http://localhost:8100, *', but only one is allowed. Origin 'http://localhost:8100' is therefore not allowed access.
我想知道什么是最好的实践是这样吗?
谢谢。