TheWidlarzGroup/react-native-video
Vedi su GitHub[feature/ios] support self signed https URL
Open
#2776 aperta il 20 lug 2022
6.x.xPlatform: iOSfeaturehelp wanted
Metriche repository
- Star
- (7677 star)
- Metriche merge PR
- (Merge medio 34g 22h) (1 PR mergiata in 30 g)
Descrizione
When I what to play a video asset stored in self signed certificate server via iOS, it shows error as "The certificate for this server is invalid.". Is there any way to ignore certificate validation? When request data from self signed cert server with NSURLSession, I can ignore cert validation using following code
- (void)URLSession:(NSURLSession *)session didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition, NSURLCredential * _Nullable))completionHandler {
NSURLCredential *credential = [NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust];
completionHandler(NSURLSessionAuthChallengeUseCredential, credential);
}
How can I do this in this component? as this issue #2649