我尝试下载运行https://github.com/gentwolf-shen/EasyAR-WebAR-Demo 里面的demo,按着文档配置完一系列的key和id之后,运行
开始识别的时候,出现如下的跨域错误,还望帮忙看看有什么样的解决办法,感谢
Access to fetch at 'https://3ab0a5253a738dae5e03bd2cfb0bbb8e.cn1.crs.easyar.com:8080/search' from origin 'http://127.0.0.1:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
App.js也做了如下配置
/ 请从开者中心获取 "Client-end (Target Recognition) URL",格式如:https://3ab0a5253a738dae5e03bd2cfb0bbb8e.cn1.crs.easyar.com:8080/search
const app = new App('https://3ab0a5253a738dae5e03bd2cfb0bbb8e.cn1.crs.easyar.com:8080/search');