在我们的项目中,我们希望确保与服务器通信的数据始终通过https进行传输。 作为测试人员,我想按预期测试这项工作。我如何在客户端测试。 感谢
答案 0 :(得分:0)
Just change the Info.plist temporarily.
Info.plist -> Open As -> Source Code: NSAppTransportSecurity, NSAllowsArbitraryLoads = NO.
So the client http is forbidden.
After the test, reset as before.