-
Notifications
You must be signed in to change notification settings - Fork 344
How to avoid "self signed certificate" error? #229
Comments
This used to be fix-able with |
|
For anyone wondering, you can also do: const link = createHttpLink({
fetchOptions: {
agent: new https.Agent({ rejectUnauthorized: false }),
},
}) |
@rtymchyk would you be able to add this to the docs? And what use case does this solve? I'm not familiar with agent? |
@jbaxleyiii The use case it solves for me is connecting to my API node that has a self-signed SSL certificate on the dev environment. Requests from Apollo do not complete otherwise. I can add to docs if you think it's common enough. |
I'm not sure its common enough but I could imagine people getting stuck on it and hard to find. I'd love to see it as a recipe if you are open to it! |
@rtymchyk https module seems works only in NodeJs, How could it work in RN client? When I try this on Android device (iOS device no problem), get the following error:
|
Sorry, I'm not familiar with RN and what's available there. |
It's Android 7.0's bug. facebook/react-native#17891 |
With React Native you can't use |
Where did you put it? |
@pedzed add |
The text was updated successfully, but these errors were encountered: