【发布时间】:2015-01-28 11:47:08
【问题描述】:
是否可以根据用户是否登录来限制对资源(即 index.html)的访问?也许像 .htaccess 之类的?
【问题讨论】:
标签: firebase-hosting
是否可以根据用户是否登录来限制对资源(即 index.html)的访问?也许像 .htaccess 之类的?
【问题讨论】:
标签: firebase-hosting
没有。 Firebase 托管不实施对静态资源的访问控制。
另见本题cmet中的讨论:Firebase route security without AngularFire
【讨论】:
有关于此的新信息: https://firebase.google.com/docs/hosting/functions (例子: https://github.com/firebase/functions-samples/tree/master/authorized-https-endpoint)
您应该能够使用云函数来限制对内容的访问(这是在服务器端进行身份验证和生成的)。
【讨论】: