如何解决Firestore Rest API权限被拒绝
我正在使用Writebatch https://firestore.googleapis.com/v1beta1/projects/my_project_link/documents:batchWrite
,其中Authorization
标头为Bearer my_token
,并且在控制台内部的安全规则中,我有这些规则
match /{document=**} {
allow read,write,delete,update,create: if(request.auth != null || request.auth == null)
&& request.time < timestamp.date(2020,12,12);
}
但它会回应
{
"error": {
"code": 403,"message": "Missing or insufficient permissions.","status": "PERMISSION_DENIED"
}
}
我不知道缺少什么,或者可能是firebase的问题
但是当我使用google OAuth2.0凭据时,它会起作用
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。