我使用NSURLProtocol
并NSURLSession
做一个webview
代理请求,
当我的代理服务器是匿名的时它可以工作,</p>
但是,当我的代理服务器需要用户名和密码时,它会返回以下警告
CFMachPortSetInvalidationCallBack()
CFMachPort
使用没有任何发送权限的 Mach 端口 (0x8e03)调用。这是行不通的。回调函数:0x24232ea1
和 webview 提醒一个窗口,要求我填写username
和password
,
当我单击取消按钮时,它转到- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition, NSURLCredential *))completionHandler
和我的方法工作。
我不想提醒窗口
谁能解决我的问题
比