swift2 - How to disable NSAppTransportSecurity in my info.plist file? -


how disable nsapptransportsecurity in info.plist file?

that request

func request(){                  let url = nsurl(string: "https://www.widadclub.tk/feed/")             let feedparser = mwfeedparser(feedurl: url)             feedparser.delegate = self             feedparser.parse()             } 

to disable totally nsapptransportsecurity domains open plist file text editor , add:

<!doctype plist public "-//apple//dtd plist 1.0//en" "http://www.apple.com/dtds/propertylist-1.0.dtd">     <plist version="1.0">     <dict>         <!-- .......................... -->         <!-- other keys present -->         <!-- .......................... -->          <key>nsapptransportsecurity</key>         <dict>             <key>nsallowsarbitraryloads</key>            <true/>          </dict>      </dict>     </plist> 

to add specific exceptions list of domains add instead:

<!doctype plist public "-//apple//dtd plist 1.0//en" "http://www.apple.com/dtds/propertylist-1.0.dtd"> <plist version="1.0"> <dict>     <!-- .......................... -->     <!-- other keys present -->     <!-- .......................... -->      <key>nsapptransportsecurity</key>     <dict>          <key>nsexceptiondomains</key>         <dict>               <key>widadclub.tk</key>             <dict>                 <key>nsexceptionallowsinsecurehttploads</key>                 <true/>                 <key>nsincludessubdomains</key>                 <true/>             </dict>          </dict>     </dict>  </dict> </plist> 

nsincludessubdomains not necessary permits access subdomains wiki.widadclub.tk, blog.widadclub.tk etc.

for detailed tutorial have @ this blog post


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -