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
Currently, in my graphql.module.ts file I'm returning my Apollo instance like that:
exportfunctioncreateApollo(httpLink: HttpLink){return{link: httpLink.create({
uri
}),cache: newInMemoryCache(),};}
This only works when the specified uri has a SSL certificate. In my case, it's a self-signed certificate, which makes the request fail with status code 0 Unknown error.
So, I can currently work around the problem with:
process.env.NODE_TLS_REJECT_UNAUTHORIZED='0';
But isn't there a better way like this one (when using Next.js)?
The text was updated successfully, but these errors were encountered:
Yes, that might be the case. That's why I've referenced the angular issue and mentioned in the subject that this issue can also be about a documentation improvement in this regard. I think it's a common use case to consume data from a dev server during development with a self signed certificate.
Currently, in my
graphql.module.ts
file I'm returning my Apollo instance like that:This only works when the specified
uri
has a SSL certificate. In my case, it's a self-signed certificate, which makes the request fail with status code0 Unknown error
.So, I can currently work around the problem with:
But isn't there a better way like this one (when using Next.js)?
The text was updated successfully, but these errors were encountered: