这里是Javascript API示例CORS错误

问题描述 投票:-2回答:1

只是从这里开始。我已经尝试了javascript示例并获得cors错误。我的测试网址是https://fleetcom511.com/all_drivers_new.php

Access to XMLHttpRequest at 'https://vector.hereapi.com/v2/vectortiles/info?xnlp=CL_JSMv3.1.11.1&apikey=xxxxx' from origin 'http://fleetcom511.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
mapsjs-core.js:41 GET https://vector.hereapi.com/v2/vectortiles/info?xnlp=CL_JSMv3.1.11.1&apikey=xxxxx net::ERR_FAILED
d @ mapsjs-core.js:41
Lc @ mapsjs-core.js:42
application/json @ mapsjs-core.js:75
jf.qj @ mapsjs-core.js:74
(anonymous) @ mapsjs-core.js:52
(anonymous) @ mapsjs-core.js:52
$d.b @ mapsjs-core.js:52
$d.add @ mapsjs-core.js:51
Xd @ mapsjs-core.js:51
jf @ mapsjs-core.js:74
ip @ VM152:49
dp @ VM152:48
X.qb @ VM152:45
X.yj @ VM152:50
X.Ug @ VM152:60
(anonymous) @ all_drivers_new.php:50
all_drivers_new.php:1 Access to XMLHttpRequest at 'https://vector.hereapi.com/v2/vectortiles/base/mc/13/4096/4096/omv?xnlp=CL_JSMv3.1.11.1&apikey=xxxxxx' from origin 'http://fleetcom511.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
mapsjs-core.js:77 GET https://vector.hereapi.com/v2/vectortiles/base/mc/13/4096/4096/omv?xnlp=CL_JSMv3.1.11.1&apikey=xxxxx net::ERR_FAILED
here-api
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.