Closed sebastienfouache closed 4 years ago
@smollweide any suggestion ?
Could we add an option to avoid certificat check in tunnelling ?
tunnel: {
protocol: 'https',
authUser: undefined,
authPass: undefined,
host: 'localhost',
port: 3333,
no-check-certificate: true, // <--
requestHeaders: {
host: 'www.test.com',
referer: "http://www.test.com/",
},
}
Hi Sebastien, thanks. Feel free to add a PR
Hi Sebastien, that's not secure but you can add this in the mock server js file:
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0;
Hello, i m tunnelling calls to real enpoints but https look to crash if certificats not valid or self signed.
Hint : https://stackoverflow.com/questions/46968937/nodejs-request-post-not-working-for-https-website/46968984#46968984