1、在Info.plist文件中添加App Transport Security Settings,类型为Dictionary;
2、在App Transport Security Settings下添加Allow Arbitrary Loads,类型为Boolean,值为YES。