# KIBANA Can't Download GeoJSON Map Due To CORS Error

**URL:** https://discuss.elastic.co/t/kibana-cant-download-geojson-map-due-to-cors-error/169540
**Category:** Kibana
**Created:** [February 22, 2019, 9:18am UTC](https://discuss.elastic.co/t/kibana-cant-download-geojson-map-due-to-cors-error/169540 "2019-02-22T09:18:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![upchair](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/upchair/32/20893_2.png) [@upchair](https://discuss.elastic.co/u/upchair)
#### Post date: [February 22, 2019, 9:18am UTC](https://discuss.elastic.co/t/kibana-cant-download-geojson-map-due-to-cors-error/169540/1 "2019-02-22T09:18:09Z")

</div>

Hello All,

I tried starting my Kibana Server but I got the an error. I included the necessary enable CORS parameters which I need to visualize a map in Kibana but when I try to visualize the map in Kibana I get the following error:

**Cannot download [http://localhost:8000/Liberian\_Counties.geojson](http://localhost:8000/Liberian_Counties.geojson) file. Please ensure the CORS configuration of the server permits requests from the Kibana application on this host**

In order to resolve the above error I now included the following HTTP CORS related parameters in the KIbana.yml file

**http.cors.enabled: true**  
**http.cors.allow-origin: "\*"**  
**http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE**  
**http.cors.allow-headers: kbn-version, Origin, X-Requested-With, Content-Type, Accept, Engaged-Auth-Token**

When I restarted the Kibana Server in order that the 4 lines above take effect, I got the following error from the kibana server at startup.

**error [08:36:55.054] [fatal][root] Error: "http.cors.enabled", "http.cors.allow-origin", "http.cors.allow-methods", and "http.cors.allow-headers" settings were not applied. Check for spelling errors and ensure that expected plugins are installed.**  
\*\* at KbnServer.exports.default (C:\Elastic Search Setup\kibana-6.5.4-windows-x86\_64\src\server\config\complete.js:21:17)\*\*  
\*\* at KbnServer.mixin (C:\Elastic Search Setup\kibana-6.5.4-windows-x86\_64\src\server\kbn\_server.js:170:16)\*\*  
\*\* at \*\*

Please can anyone help me to identify what the problem is and give the appropriate solution to the problem.

Thank You

Richard

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [March 1, 2019, 9:24pm UTC](https://discuss.elastic.co/t/kibana-cant-download-geojson-map-due-to-cors-error/169540/2 "2019-03-01T21:24:20Z")

</div>

@thomasneirynck

---

<div class="post-metadata">

### Author: ![upchair](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/upchair/32/20893_2.png) [@upchair](https://discuss.elastic.co/u/upchair)
#### Post date: [March 6, 2019, 2:33pm UTC](https://discuss.elastic.co/t/kibana-cant-download-geojson-map-due-to-cors-error/169540/3 "2019-03-06T14:33:13Z")

</div>

I have corrected the problem. I was supposed to put the above HTTP CORS related parameters in the elastic.yml file AND NOT in the kibana.yml file as i did earlier.

Thank You All

Richard

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [March 8, 2019, 4:22pm UTC](https://discuss.elastic.co/t/kibana-cant-download-geojson-map-due-to-cors-error/169540/4 "2019-03-08T16:22:50Z")

</div>

Thanks for getting back with the solution.

Cheers  
Rashmi

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [April 5, 2019, 4:22pm UTC](https://discuss.elastic.co/t/kibana-cant-download-geojson-map-due-to-cors-error/169540/5 "2019-04-05T16:22:52Z")

</div>

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