Reputation: 151
I have an app connecting via https where the web server has a self signed SSL. Is this allowed by apple or does anything have to be done before submission?
Upvotes: 2
Views: 1701
Reputation: 2351
Yes, you can do it, you can find the answer in this question
You need to define in your info.plist your domain.
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>example.com</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
</dict>
</dict>
Upvotes: 2