Pre/Post-request scripts: interpolation of variables with functions #7832
-
Hi, Is it possible to resolve an environment variable having a function inside? I'm using a plugin var apiKey = insomnia.environment.replaceIn("{{apiKey}}");
console.log('apiKey', apiKey); But it shows me a definition of the variable rather than the resolved value:
If I use the same variable in the request as a header, it resolves correctly |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
Hi,
It is not supported yet, is it possible to let the plugin to save the key as an environment value?
Probably another workaround is accessing the key manually in the script I guess.