# Context set in settings.js not showing up in context window

**URL:** <https://discourse.nodered.org/t/context-set-in-settings-js-not-showing-up-in-context-window/50826>\
**Category:** General\
**Created:** [9 September 2021 16:16 UTC](https://discourse.nodered.org/t/context-set-in-settings-js-not-showing-up-in-context-window/50826 "2021-09-09T16:16:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmorris644](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jmorris644/32/31964_2.png) [@jmorris644](https://discourse.nodered.org/u/jmorris644)\
**Post date:** [9 September 2021 16:16 UTC](https://discourse.nodered.org/t/context-set-in-settings-js-not-showing-up-in-context-window/50826/1 "2021-09-09T16:16:27Z")

</div>

I am successfully setting a global context variable in settings.js. I can access the global variable and use it just fine after node-red starts.

It does not show up in the Context Data window. I am just curious, should it?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [9 September 2021 16:22 UTC](https://discourse.nodered.org/t/context-set-in-settings-js-not-showing-up-in-context-window/50826/2 "2021-09-09T16:22:41Z")

</div>

By default, the sidebar does _not_ display context set via `functionGlobalContext`. This is because there could be credentials or other sensitive information added in there to be available to the flow, that shouldn't be accessible otherwise.

In your settings file you should find `exportGlobalContextKeys`. You can change its value to `true` if you want to see your global context info in the sidebar.

---

<div class="post-metadata">

**Author:** ![jmorris644](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jmorris644/32/31964_2.png) [@jmorris644](https://discourse.nodered.org/u/jmorris644)\
**Post date:** [9 September 2021 16:25 UTC](https://discourse.nodered.org/t/context-set-in-settings-js-not-showing-up-in-context-window/50826/3 "2021-09-09T16:25:49Z")

</div>

> [@knolleary](#):
>
> exportGlobalContextKeys

Thanks. Changing exportGlobalContextKeys to "true" worked as expected and documented in the settings.js file. I missed it....

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 September 2021 16:26 UTC](https://discourse.nodered.org/t/context-set-in-settings-js-not-showing-up-in-context-window/50826/4 "2021-09-23T16:26:49Z")

</div>

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