我的网站上存在一个简单但严重的问题。 multi.reindicator.com 但是它使用mapbox作为底图,使用carto作为叠加器。 通常效果很好,但有时(经常)部分显示叠加层。根据网络流(检查器),某些请求将响应“状态:不良->'不良请求'”
You can see the map with error here
这是har文件的一部分:
{
"startedDateTime": "2019-08-20T17:13:04.505Z",
"time": 121.74399999639718,
"request": {
"method": "GET",
"url": "https://cartocdn-gusc.global.ssl.fastly.net/reindicator/api/v1/map/reindicator@3b077a09@c3615dde7e9d26d95c813667bde38147:1545364448004/1/13/1878/3146.png",
"httpVersion": "http/1.1",
"headers": [
{
"name": "Sec-Fetch-Mode",
"value": "no-cors"
},
{
"name": "Referer",
"value": "https://multi.reindicator.com/"
},
{
"name": "DNT",
"value": "1"
},
{
"name": "User-Agent",
"value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36"
}
],
"queryString": [],
"cookies": [],
"headersSize": -1,
"bodySize": 0
},
"response": {
"status": 400,
"statusText": "Bad Request",
"httpVersion": "http/1.1",
"headers": [
{
"name": "Access-Control-Allow-Origin",
"value": "*"
},
{
"name": "Access-Control-Allow-Headers",
"value": "X-Requested-With, X-Prototype-Version, X-CSRF-Token, Authorization"
}
],
如您在此处看到的,响应状态为400。
如果您有任何想法请告诉我。 谢谢。