# CORS not getting enabled in ElasticSearch dockerfile

**URL:** <https://discuss.elastic.co/t/cors-not-getting-enabled-in-elasticsearch-dockerfile/91622>\
**Category:** Elasticsearch\
**Created:** [July 3, 2017, 11:45am UTC](https://discuss.elastic.co/t/cors-not-getting-enabled-in-elasticsearch-dockerfile/91622 "2017-07-03T11:45:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [July 7, 2017, 6:49am UTC](https://discuss.elastic.co/t/cors-not-getting-enabled-in-elasticsearch-dockerfile/91622/2 "2017-07-07T06:49:09Z")

</div>

_Please use the code button_ (`</>`) _when pasting in configuration files. That prevents the special characters in the file from being treated as markdown formatting_.

What makes you think that CORS isn't enabled?  
You've not shown anything to indicate one way or another whether CORS is working.

If you're looking for CORS headers coming back from ES, then check that you are actually initiating a CORS response - see this topic [Config cors setting not working?](https://discuss.elastic.co/t/config-cors-setting-not-working/90189/2)

---

_[View the full topic](https://discuss.elastic.co/t/cors-not-getting-enabled-in-elasticsearch-dockerfile/91622)._
