Is it possible to ignore self-signed errors using fetch?
#74187
Unanswered
astrodomas
asked this question in
App Router
Replies: 2 comments 17 replies
-
|
Could you read through here? nodejs/undici#1489 (comment) |
Beta Was this translation helpful? Give feedback.
16 replies
-
|
May this help. Setting environment variable "NODE_TLS_REJECT_UNAUTHORIZED" to "0" |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, since nextjs mandates using the web fetch api which it extends. Is it possible to ignore self-signed tls certs? As to my knowledge web fetch does not allow that. Meaning, that on the server-side I can't call my api layer.
Using nextjs built in fetch - there is no option to pass a httpsAgent or anything, that would give an option to ignore the TLS.
Also, this is probably not related to this issue (as it's regarding the nextjs middleware layer): #49546
Code snippets of working examples
Beta Was this translation helpful? Give feedback.
All reactions