# Kibana No 'Access-Control-Allow-Origin' header is present on the requested resource

**URL:** <https://discuss.elastic.co/t/kibana-no-access-control-allow-origin-header-is-present-on-the-requested-resource/119434>\
**Category:** 中文提问与讨论\
**Created:** [February 12, 2018, 9:02am UTC](https://discuss.elastic.co/t/kibana-no-access-control-allow-origin-header-is-present-on-the-requested-resource/119434 "2018-02-12T09:02:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xvdayou](https://avatars.discourse-cdn.com/v4/letter/x/c5a1d2/32.png) [@xvdayou](https://discuss.elastic.co/u/xvdayou)\
**Post date:** [February 12, 2018, 9:02am UTC](https://discuss.elastic.co/t/kibana-no-access-control-allow-origin-header-is-present-on-the-requested-resource/119434/1 "2018-02-12T09:02:13Z")

</div>

my code is

```auto
$http({
               url:'http://10.153.98.130:8080/elastic-web/elastic/exportExcel.action',
              method: 'POST',
                data: ｛
                    endTime:"Wed Feb 07 2018 11:33:28 GMT+08:00",
                    index: "whr1*",
                    query: "22312",
                    startTime:"Wed Feb 07 2018 11:18:28 GMT+08:00"
｝,
               headers: {
                   'Content-Type': 'application/x-www-form-urlencoded'
           }).then(function successCallback(response) {
                   console.log(response)
           }, function errorCallback(response) {
                    console.log(response)
           });

```

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [February 13, 2018, 6:32pm UTC](https://discuss.elastic.co/t/kibana-no-access-control-allow-origin-header-is-present-on-the-requested-resource/119434/2 "2018-02-13T18:32:09Z")

</div>

That url doesn't look like Kibana, what server are you trying to connect to? It is the responsibility of that server to send the 'Access-Control-Allow-Origin' header.

---

<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:** [March 13, 2018, 6:32pm UTC](https://discuss.elastic.co/t/kibana-no-access-control-allow-origin-header-is-present-on-the-requested-resource/119434/3 "2018-03-13T18:32:38Z")

</div>

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