新版微信开发者工具在调用接口提示跨域的问题
新版微信开发者工具在调用接口时总是提示 XMLHttpRequest cannot load https://api-test.1kmxc.com/appservice/weixin/autoQuestionDefine/findAutoQuestionDefine. A wildcard ‘*’ cannot be used in the ‘Access-Control-Allow-Origin’ header when the credentials flag is true. Origin ‘https://wechat-test.1kmxc.com’ is therefore not allowed access. The credentials mode of an XMLHttpRequest is controlled by the withCredentials attribute. 而在v0.12.130400和之前的版本中都不存在这样的问题,该如何解决?
8 回复