- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
As a rule, any command line options available for node, can be set as the environment variable NODE_OPTIONS (each option is space separated).
In this case, in your action code, you can set it as:
process.env.NODE_OPTIONS = "--tls-min-v1.0"
... right before your api call.
Unset it after so you won't affect the security of any other calls:
delete process.env.NODE_OPTIONS
e.g.
process.env.NODE_OPTIONS = "--tls-min-v1.0" await doSomeApiCall() delete process.env.NODE_OPTIONS
Views
Replies
0 Likes
Total Likes