# Iframe Embed Cross Origin Security Exception

**URL:** <https://discuss.elastic.co/t/iframe-embed-cross-origin-security-exception/101035>\
**Category:** Kibana\
**Created:** [September 19, 2017, 2:28pm UTC](https://discuss.elastic.co/t/iframe-embed-cross-origin-security-exception/101035 "2017-09-19T14:28:10Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [September 21, 2017, 6:19pm UTC](https://discuss.elastic.co/t/iframe-embed-cross-origin-security-exception/101035/5 "2017-09-21T18:19:10Z")

</div>

Hi again,

I checked more with my team and found out that changing `server.cors.origin` in production mode is not supported in Kibana. It's allowed as an option just in Dev mode as it is necessary for running unit tests.

See the code in [https://github.com/elastic/kibana/blob/4.6/src/server/config/schema.js#L47](https://github.com/elastic/kibana/blob/4.6/src/server/config/schema.js#L47)

This means that you will not be able to call Kibana API's from AJAX in a browser application. Since it's CORS, you would have the option of calling the APIs in server-based application though.

---

_[View the full topic](https://discuss.elastic.co/t/iframe-embed-cross-origin-security-exception/101035)._
