如题,创建了一个国际版的应用,iOS 端集成AVOSCloud(sdk_version: 12.3.3)或LeanCloudObjc/Foundation登录logInWithUsernameInBackground:或者注册signUpInBackgroundWithBlock:均提示Request failed: forbidden (403),搜了403的错误码说是 Class 关闭了权限,看了_User 的Class访问权限和默认ACL权限除了delete和find是0 Role 0 User其它都是所有用户,修改find权限为所有用户也不行还是403,没有服务器地址也没有绑定自定义域名,均使用SDK的API

------ BEGIN LeanCloud REST Request -------
path: /1.1/login
curl: curl -v \
-X POST \
--compressed \
-H 'Accept: application/json' \
-H 'Content-Type: application/json; charset=utf-8' \
-H 'X-LC-Prod: 1' \
-H 'X-LC-Sign: 57ac1ba76e0829975bca479ef1c3c012,1674904967724' \
-H 'Accept-Language: zh-Hans-US;q=1, en;q=0.9' \
-H 'User-Agent: LeanCloud-Objc-SDK/13.9.0' \
-H 'Accept-Encoding: gzip' \
-H 'X-LC-Id: F8bYUsZf4dbnAaVN0trzYSqc-MdYXbMMI' \
-d '{"username":"test007","password":"qwerty"}' \
"https://f8byuszf.api.lncldglobal.com/1.1/login"
------ END --------------------------------

------ BEGIN LeanCloud REST Response ------
path: /1.1/login
cost: 653.335ms
response: Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: forbidden (403)" UserInfo={NSLocalizedDescription=Request failed: forbidden (403), NSUnderlyingError=0x600001bc50e0 {Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: text/html" UserInfo={NSLocalizedDescription=Request failed: unacceptable content-type: text/html, NSErrorFailingURLKey=https://f8byuszf.api.lncldglobal.com/1.1/login, com.alamofire.serialization.response.error.data={length = 5693, bytes = 0x3c21444f 43545950 45206874 6d6c3e0a ... 3c2f6874 6d6c3e0a }, com.alamofire.serialization.response.error.response= { URL: https://f8byuszf.api.lncldglobal.com/1.1/login } { Status Code: 403, Headers {
"Cache-Control" = (
"private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
);
"Content-Encoding" = (
gzip
);
"Content-Type" = (
"text/html; charset=UTF-8"
);
Date = (
"Sat, 28 Jan 2023 11:22:48 GMT"
);
Expires = (
"Thu, 01 Jan 1970 00:00:01 GMT"
);
Server = (
cloudflare
);
Vary = (
"Accept-Encoding"
);
"cf-ray" = (
"79095a3419dc30b2-SEA"
);
"referrer-policy" = (
"same-origin"
);
"x-frame-options" = (
SAMEORIGIN
);
} }}}, NSErrorFailingURLKey=https://f8byuszf.api.lncldglobal.com/1.1/login, com.alamofire.serialization.response.error.data={length = 5693, bytes = 0x3c21444f 43545950 45206874 6d6c3e0a ... 3c2f6874 6d6c3e0a }, com.alamofire.serialization.response.error.response= { URL: https://f8byuszf.api.lncldglobal.com/1.1/login } { Status Code: 403, Headers {
"Cache-Control" = (
"private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
);
"Content-Encoding" = (
gzip
);
"Content-Type" = (
"text/html; charset=UTF-8"
);
Date = (
"Sat, 28 Jan 2023 11:22:48 GMT"
);
Expires = (
"Thu, 01 Jan 1970 00:00:01 GMT"
);
Server = (
cloudflare
);
Vary = (
"Accept-Encoding"
);
"cf-ray" = (
"79095a3419dc30b2-SEA"
);
"referrer-policy" = (
"same-origin"
);
"x-frame-options" = (
SAMEORIGIN
);
} }}
------ END --------------------------------

好的,谢谢