You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am on the localhost with *.test domains for each project. Following the guide by Cecile Muller I've created self-issued certificates for testing purposes. Now I'm experimenting with Next.js and facing the problem when I can't fetch the GraphQL output from my localhost-based WordPress because of "FetchError: request to XXXXX failed, reason: unable to verify the first certificate". Errno and error code are "UNABLE_TO_VERIFY_LEAF_SIGNATURE". All my browsers eats this certificate like their own food, but not node-fetch and others from NodeJS.
How can I ignore certificate verification when fetching the data? I can't see any CLI option or config string to do this like, e. g., curl can do. Should I write (copy/paste) a script to include it somewhere?
ssl-root-cas looks like a solution, but I can't figure out how to nail it to the brand-new starter project.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am on the localhost with *.test domains for each project. Following the guide by Cecile Muller I've created self-issued certificates for testing purposes. Now I'm experimenting with Next.js and facing the problem when I can't fetch the GraphQL output from my localhost-based WordPress because of "FetchError: request to XXXXX failed, reason: unable to verify the first certificate". Errno and error code are "UNABLE_TO_VERIFY_LEAF_SIGNATURE". All my browsers eats this certificate like their own food, but not node-fetch and others from NodeJS.
How can I ignore certificate verification when fetching the data? I can't see any CLI option or config string to do this like, e. g., curl can do. Should I write (copy/paste) a script to include it somewhere?
ssl-root-cas looks like a solution, but I can't figure out how to nail it to the brand-new starter project.
Beta Was this translation helpful? Give feedback.
All reactions