我有一个简单的firebase存储规则,检查只有登录的用户才能访问文档: service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow write: if false;
}
match /{userId}/{filename} {
allow read: if request.auth.uid == userId;
}
}
} 然而,我惊讶地发现,文件的存储url可以打开,即使用户注销了,也可以从没有用户登录的不同浏
几个小时前,我可以毫无问题地访问我的默认存储桶。但是,现在我不能。我收到以下消息: Error Domain=FIRStorageErrorDomain Code=-13021 "User does not have permission to access gs://MY_BUCKET_NAME/data.json." UserInfo={object=data.json, ResponseBody={
"error": {
"code": 403,
"message": "Permission d
我使用Node.js库在GCP存储上创建桶。稍后,我想从我的Firebase iOS应用程序中访问这些GCP存储桶。但是,我不能。当我试图从我的iOS应用程序访问我现有的GCP存储桶时,我收到了以下错误:
Your bucket has not been set up properly for Firebase Storage. Please visit https://console.firebase.google.com/project/MY_PROJECT/storage/files to automatically repair this issue and then retry. I
我制作了一个简单的录音网页应用程序使用Firebase托管。我想在浏览器上录制音频并将其上传到云存储。当我部署和访问我的应用程序时,我可以录制音频。然而,该应用程序未能将音频上传到云存储。
(我使用Windows 10,Windows子系统用于Linux,Debian10.3和Google浏览器。)
这是浏览器控制台中的错误消息。
firebasestorage.googleapis.com/v0/b/ondoku-dc29c.appspot.com/o?name=audio%2Fspeech.wav:1
Failed to load resource: the server respond
我最近遇到了一些关于Firebase存储的问题。 当我们尝试访问刚刚上传的文件时,浏览器中会显示以下错误消息 {
"error": {
"code": 400,
"message": "Could not get object. Please ensure firebase-
storage@system.gserviceaccount.com is set as an OWNER of this
object."
}
} 我们尝试在控制台
我试图在本地服务器上测试一个程序,该程序引用Firebase存储中的文件。显然,我不允许从除了Firebase的服务器上从我的存储URL下载文件。
XMLHttpRequest不能装载..。请求的资源上没有“访问-控制-允许-原产地”标题。因此,“”源是不允许访问的。:8080/#/数据:1未登录(有望) UnexpectedResponseException
如何允许本地主机从Firebase存储中下载文件?我猜在规则里有什么办法允许这样吗?现在我的规则是这样的:
service firebase.storage {
match /b/xyz.appspot.com/o {