在Firebase Storage中访问没有令牌的URL [英] Access url without token in Firebase Storage
本文介绍了在Firebase Storage中访问没有令牌的URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Firebase存储下载网址,例如
I have a firebase storage download url, like
How can I access this url without token parameter?
例如,如果我在没有令牌的情况下访问以上url,将出现403错误,显示权限被拒绝.
For example, If I access above url without token there will be 403 error showing permisson denied.
我的Firebase存储安全规则如下:
My firebase storage secure rule is below :
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write: if request.auth != null;
}
}
}
此文件位于/etc
文件中.我该怎么办?
This file located in /etc
file. How can I do it?
推荐答案
尝试更改规则:
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read;
allow write: if request.auth != null;
}
}
}
这篇关于在Firebase Storage中访问没有令牌的URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文