# CORS and other settings with AWS ES

**URL:** <https://discuss.elastic.co/t/cors-and-other-settings-with-aws-es/127145>\
**Category:** Elasticsearch\
**Created:** [April 6, 2018, 10:19pm UTC](https://discuss.elastic.co/t/cors-and-other-settings-with-aws-es/127145 "2018-04-06T22:19:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jackson\_Pollock](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jackson_pollock/32/37068_2.png) [@Jackson\_Pollock](https://discuss.elastic.co/u/Jackson_Pollock)\
**Post date:** [April 6, 2018, 10:19pm UTC](https://discuss.elastic.co/t/cors-and-other-settings-with-aws-es/127145/1 "2018-04-06T22:19:34Z")

</div>

In my local elasticsearch.yml I am able to set:  
http.cors.enabled : true  
http.cors.allow-origin : "\*"  
http.cors.allow-methods : OPTIONS, HEAD, GET, POST, PUT, DELETE  
http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type, Content-Length

However, I don't see how to do this on AWS ES? (not in AWS docs that can find)

I believe I am having a CORS issue of some kind with AWS ES...

Any help appreciated.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 7, 2018, 2:48am UTC](https://discuss.elastic.co/t/cors-and-other-settings-with-aws-es/127145/2 "2018-04-07T02:48:29Z")

</div>

I think you'd better ask that on AWS forums.

BTW did you look at [cloud.elastic.co](http://cloud.elastic.co) and [https://aws.amazon.com/marketplace/pp/B01N6YCISK](https://aws.amazon.com/marketplace/pp/B01N6YCISK) ?

---

<div class="post-metadata">

**Author:** ![Jackson\_Pollock](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jackson_pollock/32/37068_2.png) [@Jackson\_Pollock](https://discuss.elastic.co/u/Jackson_Pollock)\
**Post date:** [April 7, 2018, 4:03am UTC](https://discuss.elastic.co/t/cors-and-other-settings-with-aws-es/127145/3 "2018-04-07T04:03:22Z")

</div>

I’m not changing platforms.

---

<div class="post-metadata">

**Author:** ![Jackson\_Pollock](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jackson_pollock/32/37068_2.png) [@Jackson\_Pollock](https://discuss.elastic.co/u/Jackson_Pollock)\
**Post date:** [April 10, 2018, 12:41am UTC](https://discuss.elastic.co/t/cors-and-other-settings-with-aws-es/127145/4 "2018-04-10T00:41:12Z")

</div>

There was an easy fix for this, just put behind an nginx proxy and all is well.

---

<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:** [May 8, 2018, 12:41am UTC](https://discuss.elastic.co/t/cors-and-other-settings-with-aws-es/127145/5 "2018-05-08T00:41:28Z")

</div>

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