Web-fetch: be able to set rejectUnauthorized = false #7541
Closed
devbytyler
started this conversation in
Proposals
Replies: 1 comment
-
This is already implemented https://github.com/remix-run/remix/releases/tag/remix%401.7.3 For some reason, the global object |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a multi-container app where one container is a node Remix app. I need to make TLS encrypted requests from Remix to one of my other containers, which listens on HTTPS via a self-signed certificate.
Unlike node-fetch, remix/web-fetch does not allow me to pass
rejectUnauthorized=false
to the fetch request via a customagent
, and therefore the request to the container using the self-signed cert fails with the error message:FetchError: request to https://my-service failed, reason: self-signed certificate
There's the obvious option of using a legit cert, say from letsencrypt, but that's a challenge since the certs are generated at runtime and the domains names aren't static.
I've thought about just pulling in node-fetch... but that seems like a real tragedy for obvious reasons...
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions