小编Stu*_*ent的帖子

Apps 脚本拒绝连接

我正在尝试学习 Apps Script 和一些前端网络开发人员。我在 Apps Script 中编写了一些代码,并尝试在 Google 站点中呈现它。

这是我在 Apps 脚本中使用的 doGet 函数:

function doGet() {
  var template = HtmlService.createTemplateFromFile('Index');
  return template.evaluate().setSandboxMode(HtmlService.SandboxMode.IFRAME);
}
Run Code Online (Sandbox Code Playgroud)

有趣的是,当我使用 Google 提供的 URL 时,脚本会自行呈现:https : //sites.google.com/corp/view/vrajlinkshortener

但是,当我输入自定义域时,情况并非如此:www.wharton.ml

我检查了文档,但仍然无法弄清楚为什么自定义域会禁止 Apps 脚本表单工作。

有小费吗?谢谢!

google-sites google-apps-script

1
推荐指数
1
解决办法
3375
查看次数

Firestore 安全规则:检查地图列表的值

文档看起来像这样

matches: [
{uid: ___ , ...},
{uid: ___ , ...},
]
Run Code Online (Sandbox Code Playgroud)

如何检查请求此操作的用户的 uid 是否在匹配的 uid 之一中?我尝试过这个,但没有成功。

uid 输入get(/databases/$(database)/documents/users/$(request.auth.uid)).data.matches.uid

感谢您的帮助!

firebase firebase-security firebase-authentication google-cloud-firestore

1
推荐指数
1
解决办法
1127
查看次数