# Custom regionmap not working

**URL:** https://discuss.elastic.co/t/custom-regionmap-not-working/229553
**Category:** Kibana
**Created:** [April 23, 2020, 10:21pm UTC](https://discuss.elastic.co/t/custom-regionmap-not-working/229553 "2020-04-23T22:21:10Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [April 23, 2020, 10:48pm UTC](https://discuss.elastic.co/t/custom-regionmap-not-working/229553/2 "2020-04-23T22:48:15Z")

</div>

In the [blog post](https://www.elastic.co/cn/blog/custom-region-maps-in-kibana-6-0) we give an example of using `http-server --cors='*' -p 8000` . But I've found that `http-server --cors="kbn-version" -p 8000` works better. You'll probably want to update `server.cors.origin` in your config/kibana.yml.

There were other discuss posts which had the same solution: [CORS problem in Kibana Map](https://discuss.elastic.co/t/cors-problem-in-kibana-map/193710/5)

relevant ticket: [https://github.com/elastic/kibana/issues/23904](https://github.com/elastic/kibana/issues/23904)

hopefully this works, good luck

Rashmi

---

_[View the full topic](https://discuss.elastic.co/t/custom-regionmap-not-working/229553)._
