mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add exportGlobalContextKeys to prevent exposing fgc keys
This commit is contained in:
@@ -392,7 +392,7 @@ function createContext(id,seed,parent) {
|
||||
}
|
||||
context = getContextStorage(storage);
|
||||
}
|
||||
if (seed) {
|
||||
if (seed && settings.exportGlobalContextKeys !== false) {
|
||||
if (callback) {
|
||||
context.keys(scope, function(err,keys) {
|
||||
callback(err,Array.from(new Set(seedKeys.concat(keys)).keys()));
|
||||
|
Reference in New Issue
Block a user