-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow ssl errors #107
base: master
Are you sure you want to change the base?
Allow ssl errors #107
Conversation
e77b0be
to
481ccef
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the MR! Requested some changed.
Isn't this missing the iOS implementation as well?
src/platforms/android/java/com/klippa/NativeScriptHTTP/Async.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the MR! Requested some changed.
Isn't this missing the iOS implementation as well?
Thanks for your comments, I made improvements to the code now. iOS is still missing. I'll make a separate pull request for it if I get it working. But this only adds it to the Android side. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update! Can you please add the iOS functionality to the same PR? I don't really see a good reason to merge in functionality which is missing iOS support.
README.md
Outdated
*/ | ||
allowSslErrors(true); | ||
export declare function enableSSLValidation(): void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's fine to keep only 1 method, I just wanted it renamed
InitClient(); | ||
|
||
try { | ||
TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My intention was to do this inside InitClient
while building the client
, but before running client.build()
53f2d2e
to
7b8af78
Compare
I've now finishe iOS side of it. |
PR Checklist
What is the current behavior?
Does not allow SSL errors or self-signed certificates
What is the new behavior?
Enables allowing ssl errors and self-signed certificates
Fixes/Implements/Closes #99.