Skip to content

Commit 3519090

Browse files
codegaganmonkpow
authored andcommitted
Added documentation for ignoring certificates (#329)
1 parent 35feba6 commit 3519090

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,18 @@ app.use('/', proxy('internalhost.example.com', {
488488
})
489489
```
490490
491+
### Q: How to ignore self-signed certificates ?
492+
493+
You can set the `rejectUnauthorized` value in proxy request options prior to sending. See ```proxyReqOptDecorator``` for more details.
494+
495+
```js
496+
app.use('/', proxy('internalhost.example.com', {
497+
proxyReqOptDecorator: function(proxyReqOpts, originalReq) {
498+
proxyReqOpts.rejectUnauthorized = false
499+
return proxyReqOpts;
500+
}
501+
})
502+
```
491503
492504
493505
## Release Notes

0 commit comments

Comments
 (0)