• Register
1 vote
33 views

Problem :

I am troubled by below mentioned strange looking app transport security error
app transport security has blocked a cleartext http (http://) resource load since it is insecure.
6 5 3
6,930 points

1 Answer

1 vote
 
Best answer

Solution :

This was tested on iOS 9 GM seed. This is the configuration to allow a specific domain to use HTTP instead of HTTPS:

<key>NSAppTransportSecurity</key>
<dict>
      <key>NSAllowsArbitraryLoads</key> 
      <false/>
       <key>NSExceptionDomains</key>
       <dict>
            <key>example.com</key> <!--Include your domain at this line -->
            <dict>
                <key>NSIncludesSubdomains</key>
                <true/>
                <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
                <true/>
                <key>NSTemporaryExceptionMinimumTLSVersion</key>
                <string>TLSv1.1</string>
            </dict>
       </dict>
</dict>

Note : NSAllowsArbitraryLoads must be false.

As it disallows all insecure connection but the exceptions list allows connection to some domains without HTTPS.

9 7 4
38,600 points

Related questions

0 votes
1 answer 588 views
588 views
Problem: Installation failed: Can&rsquo;t Install the Software I am getting following message like: A software update is required to connect to your iPhone. Would you like to download and install this updatenow? Use of this software is subject to the original Software ... the software because it si not currently available from the softwre update server. Can any one help to sort this issue out?
asked Jul 16 quizzBabes 160 points
0 votes
1 answer 70 views
70 views
Problem : All of a sudden I am unable to build my project. I started to get the following compiler error: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool failed with exit code 255 I got this error for a lot of my xib files. Any clues what is happening and what will be the Solution for it? Please Note : I am using Xcode 4.6 and iOS 6.1.
asked Nov 20, 2019 peterlaw 6.9k points
0 votes
1 answer 36 views
36 views
Problem : I want to run the NVCC to compile my CUDA program on my Mac. But when I try to run the NVCC, I am facing below error message: "nvcc fatal : The version ('70300') of the host compiler ('Apple clang') is not supported". I tried updating the XCode version to 7.3, and the Mac version to 10.11.4. But I am facing the same error. How can I revert my Apple Clang Version?
asked Nov 30, 2019 alecxe 7.5k points
0 votes
1 answer 52 views
52 views
Problem: I am trying to archive my project but facing very unexpected error as shown below: Showing Recent Messages:-1: mkdir -p /Users/spritzindia/Library/Developer/Xcode/DerivedData/Contigo-atftiouzrdopcmcpprphpilawwzm/Build/Products/Debug-iphonesimulator/Contigo.app/Frameworks Showing ... : pod 'IQKeyboardManagerSwift'  pod 'SDWebImage', '~> 4.0'  pod 'KRPullLoader'  pod 'Paytm-Payments'
asked Aug 25 Raphael Pacheco 4.9k points
0 votes
1 answer 87 views
87 views
Problem : I have very simple program HelloWorld is running on iOS. The same program has been running fine for a long time. But recently I noticed that I get the below listed BoringSSL error when my program runs on my ... boringssl_session_errorlog: line 2871 [boringssl_session_read] SSL_ERROR_ZERO_RETURN(6): operation failed because the connection was cleanly shut down with a close_notify alert
asked Dec 4, 2019 alecxe 7.5k points