我正在尝试使用JavaScript提取Google Place API,但出现此错误消息:
Access to fetch at 'https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=2000&type=restaurant&keyword=American&key=AIzaSyC24tk27gf8Lh1FA0S4-LoMzy8tta4MUWk' from origin 'https://replbox.repl.it' has been blocked by CORS policy: 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.
该如何解决?