我正在尝试从前端访问API,并且尝试了xhr和fetchapi请求。在使用fetch时,我收到错误消息"Response to present not pass access control check: No ' access -Control-Allow- Origin如果一个不透明的响应满足您的需求,请将请求的模式设置为'no- CORS‘以获取</em
我正在尝试从localhost访问Deezer API,但是我一直收到以下错误:
FetchAPI cannot load http://api.deezer.com/search/track/autocompleteIf an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resour