简体   繁体   中英

HERE Maps Tile API returns CORS Errors at Random

Few requests to Here Map API returns 200 response but most of requests are blocked due to CORS and returns 301 response.

Error Message in browser console: Access to XMLHttpRequest at 'http://2.base.maps.cit.api.here.com/maptile/2.1/maptile/24c3a120e9/normal.day/10/840/607/256/png8?xxxxxxxx' from origin 'http://google.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

200 Response: 在此处输入图像描述

301 Response: 在此处输入图像描述

This can be solved by removing the "CIT" from the request. Regards.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM