Firebase API 限制设置问题

问题描述 投票:0回答:1

我的 Firebase API 限制设置有问题。 我想添加 HTTP 限制来保护数据,但是当我添加限制时,它不起作用。我在这里做错了什么?

reactjs firebase github-pages
1个回答
0
投票

无法使用

*
与先前定义的路径来限制不同的路径。我的意思是,您可以使用
*
指定到特定域
https://username.github.io/*
(正确)的任何路径,但不能指定到路径
https://username.github.io/project-name/*
(不正确)。

您可以查看这个官方网站。在您的情况下,限制访问的唯一选项似乎是添加所有确切路径(

https://username.github.io/project-name/home
https://username.github.io/project-name/about
https://username.github.io/project-name/contact
...)

© www.soinside.com 2019 - 2024. All rights reserved.