We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25080e7 commit 15dd0dbCopy full SHA for 15dd0db
1 file changed
packages/http-caching-proxy/src/http-caching-proxy.ts
@@ -8,9 +8,9 @@ import debugFactory from 'debug';
8
import {once} from 'node:events';
9
import {
10
createServer,
11
+ Server as HttpServer,
12
IncomingMessage,
13
OutgoingHttpHeaders,
- Server as HttpServer,
14
ServerResponse,
15
} from 'node:http';
16
import {AddressInfo} from 'node:net';
@@ -89,6 +89,11 @@ export class HttpCachingProxy {
89
// http status code. Please note that Axios creates a new error in such
90
// condition and the original low-level error is lost
91
validateStatus: () => true,
92
+ // Disable SSL certificate validation for HTTPS requests
93
+ // This is acceptable for a testing/caching proxy
94
+ httpsAgent: new (require('node:https').Agent)({
95
+ rejectUnauthorized: false,
96
+ }),
97
});
98
}
99
0 commit comments