# Enable CORS on Kibana

**URL:** https://discuss.elastic.co/t/enable-cors-on-kibana/334084
**Category:** Kibana
**Tags:** elastic-stack-security
**Created:** [May 23, 2023, 7:12am UTC](https://discuss.elastic.co/t/enable-cors-on-kibana/334084 "2023-05-23T07:12:18Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)
#### Post date: [June 1, 2023, 8:59am UTC](https://discuss.elastic.co/t/enable-cors-on-kibana/334084/12 "2023-06-01T08:59:43Z")

</div>

Have you enabled the `xpack.security.sameSiteCookies` option mentioned above in your config? From [this thread](https://discuss.elastic.co/t/cookies-issue-while-embedding-kibana-dashboard-with-iframe/256777/9) that looks to be the missing piece.

---

_[View the full topic](https://discuss.elastic.co/t/enable-cors-on-kibana/334084)._
