objective-c - firebase 手机身份验证失败 ios

标签 objective-c swift xcode firebase firebase-authentication

Domain=FIRAuthErrorDomain Code=17062 "{"error":{"code":403,"message":"Requests from this ios client application <empty> are blocked.","errors":[{"message":"Requests from this ios client application <empty> are blocked.","domain":"global","reason":"forbidden"}],"status":"PERMISSION_DENIED"}}" UserInfo={NSLocalizedDescription={"error":{"code":403,"message":"Requests from this ios client application <empty> are blocked.","errors":[{"message":"Requests from this ios client application <empty> are blocked.","domain":"global","reason":"forbidden"}],"status":"PERMISSION_DENIED"}}, FIRAuthErrorUserInfoNameKey=ERROR_WEB_INTERNAL_ERROR}

最佳答案

在 info.plist 中添加应用程序传输安全性,请检查下面

<key>NSAppTransportSecurity</key> <dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    <key>NSExceptionDomains</key>
    <dict>
        <key>example.com</key>
        <dict>
            <key>NSExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSIncludesSubdomains</key>
            <true/>
        </dict>
    </dict> </dict>

关于objective-c - firebase 手机身份验证失败 ios,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60088186/

相关文章:

swift - 如何在 swift 中创建一个 SKViaPoint 数组 - Skobbler API

ios - 从纵向模式切换到横向模式时重新排序 View (iOS Xcode swift)

objective-c - 验证包含括号的字符串

隐藏按钮上的 IOS 键盘

ios - Swift UITableView didSelectRowAtIndexPath 在 multipleSection 和多个原型(prototype)单元格中

swift - CGFloat 没有转换为 UInt32?

ios - 在数组中创建 uiimageView 的问题

ios - 如何在ios中使用nsmutableurlrequest发送递归json请求?

objective-c - Objective-C 中的模板?

objective-c - '@objc' 类的通用子类不能具有显式的 '@objc' 属性