# Kibana iframe error

**URL:** <https://discuss.elastic.co/t/kibana-iframe-error/293997>\
**Category:** Kibana\
**Created:** [January 11, 2022, 9:03am UTC](https://discuss.elastic.co/t/kibana-iframe-error/293997 "2022-01-11T09:03:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yanwencheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yanwencheng/32/97045_2.png) [@yanwencheng](https://discuss.elastic.co/u/yanwencheng)\
**Post date:** [January 11, 2022, 9:03am UTC](https://discuss.elastic.co/t/kibana-iframe-error/293997/1 "2022-01-11T09:03:40Z")

</div>

i set xpack.security.sameSiteCookies: "None"  
Error when accessing kibana

```auto
Logging in with provider "basic" (basic)
  log [17:00:29.269] [error][http] Error: "SameSite: None" requires Secure connection
    at validateOptions (/tuonong/kibana-7.15.2-linux-x86_64/src/core/server/http/cookie_session_storage.js:65:11)
    at createCookieSessionStorageFactory (/tuonong/kibana-7.15.2-linux-x86_64/src/core/server/http/cookie_session_storage.js:80:3)
    at HttpServer.createCookieSessionStorageFactory (/tuonong/kibana-7.15.2-linux-x86_64/src/core/server/http/http_server.js:395:103)
    at createCookieSessionStorageFactory (/tuonong/kibana-7.15.2-linux-x86_64/src/core/server/http/http_server.js:126:64)
    at new SessionCookie (/tuonong/kibana-7.15.2-linux-x86_64/x-pack/plugins/security/server/session_management/session_cookie.js:60:38)
    at SessionManagementService.setup (/tuonong/kibana-7.15.2-linux-x86_64/x-pack/plugins/security/server/session_management/session_management_service.js:63:26)
    at SecurityPlugin.setup (/tuonong/kibana-7.15.2-linux-x86_64/x-pack/plugins/security/server/plugin.js:196:35)
    at PluginWrapper.setup (/tuonong/kibana-7.15.2-linux-x86_64/src/core/server/plugins/plugin.js:103:26)
    at PluginsSystem.setupPlugins (/tuonong/kibana-7.15.2-linux-x86_64/src/core/server/plugins/plugins_system.js:91:40)
    at PluginsService.setup (/tuonong/kibana-7.15.2-linux-x86_64/src/core/server/plugins/plugins_service.js:114:19)
    at Server.setup (/tuonong/kibana-7.15.2-linux-x86_64/src/core/server/server.js:331:26)
    at Root.setup (/tuonong/kibana-7.15.2-linux-x86_64/src/core/server/root/index.js:54:14)
    at bootstrap (/tuonong/kibana-7.15.2-linux-x86_64/src/core/server/bootstrap.js:119:5)
    at Command.<anonymous> (/tuonong/kibana-7.15.2-linux-x86_64/src/cli/serve/serve.js:226:5)
 error [17:00:29.259] Error: Internal Server Error
    at HapiResponseAdapter.toInternalError (/tuonong/kibana-7.15.2-linux-x86_64/src/core/server/http/router/response_adapter.js:61:19)
    at Router.handle (/tuonong/kibana-7.15.2-linux-x86_64/src/core/server/http/router/router.js:177:34)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at handler (/tuonong/kibana-7.15.2-linux-x86_64/src/core/server/http/router/router.js:124:50)
    at exports.Manager.execute (/tuonong/kibana-7.15.2-linux-x86_64/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
    at Object.internals.handler (/tuonong/kibana-7.15.2-linux-x86_64/node_modules/@hapi/hapi/lib/handler.js:46:20)
    at exports.execute (/tuonong/kibana-7.15.2-linux-x86_64/node_modules/@hapi/hapi/lib/handler.js:31:20)
    at Request._lifecycle (/tuonong/kibana-7.15.2-linux-x86_64/node_modules/@hapi/hapi/lib/request.js:370:32)
    at Request._execute (/tuonong/kibana-7.15.2-linux-x86_64/node_modules/@hapi/hapi/lib/request.js:279:9)

```

---

<div class="post-metadata">

**Author:** ![Mikhail\_Shustov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikhail_shustov/32/49186_2.png) [@Mikhail\_Shustov](https://discuss.elastic.co/u/Mikhail_Shustov)\
**Post date:** [January 11, 2022, 12:55pm UTC](https://discuss.elastic.co/t/kibana-iframe-error/293997/2 "2022-01-11T12:55:16Z")

</div>

You need to set up a secure connection. You can find an instruction [here](https://www.elastic.co/guide/en/elasticsearch/reference/7.16/security-basic-setup-https.html#encrypt-kibana-browser)

---

<div class="post-metadata">

**Author:** ![yanwencheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yanwencheng/32/97045_2.png) [@yanwencheng](https://discuss.elastic.co/u/yanwencheng)\
**Post date:** [January 12, 2022, 7:58am UTC](https://discuss.elastic.co/t/kibana-iframe-error/293997/3 "2022-01-12T07:58:32Z")

</div>

Thank you very much. After using STL, iframe can be embedded easily

---

<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:** [February 9, 2022, 7:59am UTC](https://discuss.elastic.co/t/kibana-iframe-error/293997/4 "2022-02-09T07:59:07Z")

</div>

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