HTTPS request how to skip SSL verification
The picture above is my code to make a HTTP request, and it is successful.
However, still with this way of writing, if I make an HTTPS request (secure connection), it will fail, with error “the certificate for this server is invalid”.
I know that this error is because SSL usually needs a license for connection so as to verify. But, it is also possible to disable this verification. For example, in python, just import ssl and ssl._create_default_https_context = ssl._create_unverified_context
So, in Swift, is there a sentence that do similar things? To allow SSL HTTPS request without verification?
iPad Air, iPadOS 17