ajax调用微信支付API,显示No 'Access-Control-Allow-Origin' ?

微信支付 文章 2020-09-03 10:41 584 0 全屏看文

AI助手支持GPT4.0

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

回答:

微喵网络:

请搞清楚后端接口的使用场景

K 丶:

仙ღ₅₂₀¹³¹⁴:

你是本地直接调用微信的 api么?h5吗?

K 丶:是的

-EOF-

AI助手支持GPT4.0