Firebase电话身份验证失败的iOS

时间:2020-02-06 05:22:49

标签: 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}

1 个答案:

答案 0 :(得分:0)

在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>