Downloading Vector Data Kibana Error using Nginx

The Error said, "Cannot download Indonesia States file. Please ensure the CORS configuration of the server permits requests from the Kibana application on this host."

I have checked my geojson web-server cors and the result is fine, the 'Access-Control-Allow-Origin' '*' already configured and work properly.

`curl -H "Access-Control-Request-Method: GET" -H "Origin: http://10.60.185.217:5601" --head http://10.60.185.217:82/indonesia.geojson

HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Fri, 21 Jun 2019 09:21:43 GMT
Content-Type: application/octet-stream
Content-Length: 299798
Last-Modified: Fri, 21 Jun 2019 02:24:00 GMT
Connection: keep-alive
ETag: "5d0c3fc0-49316"
Access-Control-Allow-Origin: kbn-version
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Content-Type,Accept
Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE
Accept-Ranges: bytes`

And this is my kibana.yml settings:
# Custom Region Maps regionmap: layers: - name: "Indonesia States" url: "http://10.60.185.217:82/indonesia.geojson" attribution: "https://raw.githubusercontent.com/superpikar/indonesia-geo$ fields: - name: "state" description: "state"

Is there any something that I missed?

Thank you for helping.

I think your Content-Type: application/octet-stream response header should be Content-Type: application/json.

I have changed the configuration and get the contet-type is application/json, unfortunately the error still appears.

Thank you for the response

Do you see any errors in your browser console?

Or any errors in your kibana logs?

Is your Kibana server HTTPS enabled? I'm not sure, but maybe the GeoJSON also needs to be available through HTTPS.

There are no errors except the vector error.

I have a little research about this https, I think it would be not easy steps.
However, thank you for your help.

Hopefully, the next kibana region map version could read the geojson from a direct directory.

The new Maps App will allow you to join aggregation results to GeoJSON data stored in Elasticsearch. You would need to ingest your Indonesia States file into Elasticsearch and then add it as a Document layer. Then construct a terms join to your other index.

https://www.elastic.co/guide/en/kibana/current/terms-join.html

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.