XMLHttpRequest cannot load https://api.leancloud.cn/1.1/functions/registerWang. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. The response had HTTP status code 400.
produciton环境没有问题
你好,按照我们之前公布的新版云引擎说明 https://blog.leancloud.cn/4292/ 和最近几天发送的题为「云引擎新版正式发布,请确认您的云引擎运行方案」的邮件,现在云引擎不再为体验版(免费版)用户提供测试环境了,应该是你的请求中有 _ApplicationProduction: 0,因此访问的是测试环境。
_ApplicationProduction: 0
你可以暂时使用生产环境进行开发(_ApplicationProduction 改为 1),或付费成为专业版。