# CORS error on grafana elasticsearch datasource

**URL:** https://discuss.elastic.co/t/cors-error-on-grafana-elasticsearch-datasource/305845
**Category:** Elasticsearch
**Created:** [May 28, 2022, 9:10am UTC](https://discuss.elastic.co/t/cors-error-on-grafana-elasticsearch-datasource/305845 "2022-05-28T09:10:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![valentine](https://avatars.discourse-cdn.com/v4/letter/v/7ab992/32.png) [@valentine](https://discuss.elastic.co/u/valentine)
#### Post date: [May 28, 2022, 9:10am UTC](https://discuss.elastic.co/t/cors-error-on-grafana-elasticsearch-datasource/305845/1 "2022-05-28T09:10:40Z")

</div>

I am Using Elastic cloud and I am trying to use it Elasticsearch as a datasource for grafana.  
Ufortunately, I get this cors error and i don't know how to enable cors on elastic cloud....can someone help out, I am relatively new to Elasticsearch

 ![Screenshot 2022-05-28 at 10.01.31](https://us1.discourse-cdn.com/elastic/original/3X/c/6/c62c498f59be065f9d225db7641dc7ba92e60ba1.jpeg)

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [May 30, 2022, 4:31am UTC](https://discuss.elastic.co/t/cors-error-on-grafana-elasticsearch-datasource/305845/2 "2022-05-30T04:31:32Z")

</div>

Welcome to our community! 😃

[Networking | Elasticsearch Guide [8.2] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.2/modules-network.html) has some settings around CORS that you may want to look into.

---

<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: [June 27, 2022, 4:32am UTC](https://discuss.elastic.co/t/cors-error-on-grafana-elasticsearch-datasource/305845/3 "2022-06-27T04:32:30Z")

</div>

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