usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
26.93k stars 1.23k forks source link

Safe mode, pre-request script require('https') is undefined #2907

Open roband7 opened 2 months ago

roband7 commented 2 months ago

I have checked the following:

Describe the bug

In a pre-request script: const https = require('https');

https comes back as undefined. Is this not supported on the open-source version perhaps?

.bru file to reproduce the bug

No response

Screenshots/Live demo link

No screenshot

roband7 commented 2 months ago

Improved error reporting in 1.26.2 helped me understand this only happens in safe mode, in developer mode things work.

Changed the issue title accordingly.

Still leaving the issue open, doesn't feel right that https is disallowed when axios is allowed.