前端使用ajax调用微信支付统一下单接口时,出现了CORS的问题,No 'Access-Control-Allow-Origin' header is present on the requested resource问题,求大神们指教
ajax调用微信支付API,显示No 'Access-Control-Allow-Origin' ?Ajax calls the WeChat payment API and displays No'Access-Control-Allow-Origin'?
ajax调用微信支付API,显示No 'Access-Control-Allow-Origin' ?前端使用ajax调用微信支付统一下单接口时,出现了CORS的问题,No 'Access-Control-Allow-Origin' header is present on the requested resource问题,求大神们指教
When the front-end uses Ajax to call the wechat payment unified order interface, there is a CORS problem. The no 'access control allow origin' header is present on the requested resource. Please give us your advice
回答:
你是本地直接调用微信的 api么?h5吗?
请搞清楚后端接口的使用场景